Ethereal-dev: Re: [Ethereal-dev] TVB buffer question (for Nortel's Mutant IP)

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

From: Gilbert Ramirez <gilbertr@xxxxxxxxx>
Date: Thu, 1 Sep 2005 09:09:19 -0500
see inline

On 9/1/05, Charles Wilkinson <c_s_wilkinson@xxxxxxxxxxx> wrote:

> 
> The questions I'd like to ask is:
> 
> 1. Do I get everything past the dissection of a lower
> level protocol? i.e if I receive a tvb from the

yes, because it's only your dissector that knows how many bytes it
needs to dissect its own protocol.

> 
> 2. If so why can I not create a new tvb with hard
> coded values (which I counted by hand in the packet
> decode) and pass it to another dissector? I know there
> are 60 bytes of info after my header, I cut off the 26
> bytes and say that there are 60 octets in the rest of
> the packet, I know this to be true yet I get a
> segmentation fault!!! I painstackingly counted every
> byte.

you should be able to.


> 
> Please help, when you know that the packet is 60 bytes
> long and you get a segmentation fault, something
> possibily my sanity is failing... :)
> 
>

Can you provide a traceback, to see where the segfault is happening?

--gilbert