Ethereal-dev: [ethereal-dev] Dissector question: variable length structures

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Craig Rodrigues <rodrigc@xxxxxxxxxxxx>
Date: Fri, 14 Jul 2000 10:21:26 -0400
Hi,

I would like to give a shot at enhancing the packet-giop.c
dissector for CORBA IIOP.  I was wondering, what technique
do people use in the other dissectors for dealing with
variable length data structures?  For example, IIOP
defines a string which is represented by it's length n, followed
by n + 1 bytes which contain the actual string (with other encoding
schemes for wide characters).  Is there a glib structure that I can
use?  I'm a bit lazy to do all the memory management by myself. :)

It's been a while since I have coded in C, so please forgive me
if my question seems a bit newbie-ish. :)  
-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc@xxxxxxxxxxxx