Ethereal-dev: Re(2): [Ethereal-dev] Help needed for GUI concept

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

From: Michael Tüxen <Michael.Tuexen@xxxxxxxxxxxxxxxxx>
Date: Tue, 9 Jan 2001 08:27:03 +0100
On Mon, 8. Jan 2001, Guy Harris <gharris@xxxxxxxxxxxx> wrote:

>On Mon, Jan 08, 2001 at 07:01:17PM +0100, Michael.Tuexen@xxxxxxxxxxxxx wrote:
>> OK, let us think about the last solution. When starting
>> dissecting the SCTP packet I create a sctp_tvb. Now
>> after some processing, I have a parameter_tvb,
>> a subset of sctp_tvb, when I detect that it contains
>> a M3UA packet. Then I have to set the length of
>> the SCTP tree accoring this distinction. So can I
>> calculate the offset of parameter_tvb inside sctp_tvb?
>
>If the SCTP dissector creates "parameter_tvb" from "sctp_tvb", it had to
>have known the offset when it did so, so there's nothing to calculate.
>
This is correct, of course. But I need the value later and at a different
place of the code. So I have to use a global variable or recalculate it.
So code would be 'nicer' I I could recalculate it.
Best regards
Michael

>_______________________________________________
>Ethereal-dev mailing list
>Ethereal-dev@xxxxxxxxxxxx
>http://www.ethereal.com/mailman/listinfo/ethereal-dev

-- 
e-mail: Michael.Tuexen@xxxxxxxxxxxxxxxxx