Ethereal-dev: Re: [Ethereal-dev] Create new tvbuff

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

From: Frank Singleton <frank.singleton@xxxxxxxxxxxx>
Date: Mon, 02 Apr 2001 07:09:46 -0500
Jeff Foster wrote:

<snip>

> OK,
> 
> 1) Create your tvbuffer
> 2) Call the dissector routines to do the processing
> 3) Call tvb_free_chain to release the tvbuffer and any that are
>         created from it.
> 
> You have to be careful where you place this routine.  If you place
> it in the proto_register_XXX routine, there is no guarantee that
> the sub-dissectors are registered.  If you place it in the init
> routine, register_init_routine, it will be call when a redissection
> takes place.  I don't know it that is really what you want. So,
> you may have to add a static flag variable to only process the data
> file once during the init routine.

Hi,

Ok I will give that a shot. I will have a static "IOR file read" flag,
so yep, that should help! I dont need subdissectors at all to parse
the IOR file, so thats good.

Thanks / Frank..

-- 
EUS/SV/Z Frank Singleton      ASO Americas BSS
Office : +1 972 583 3251      ECN 800 33251  
Pager  : +1 800 651 1184      Mobile : +1 214 228 0874
Amateur Radio: VK3FCS/KM5WS   Email : frank.singleton@xxxxxxxxxxxx

Hardware: HP Omnibook 4150 running Redhat Linux 6.2 (2.2.16 kernel).