Wireshark-users: Re: [Wireshark-users] Life cycle of "tvbuff_t *tvb" and " packet_info *pinfo"
Date Prev · Date Next · Thread Prev · Thread Next
From: "ronnie sahlberg" <ronniesahlberg@xxxxxxxxx>
Date: Tue, 1 May 2007 00:17:26 +0000
the lifetime for these two are on a per frame basis. they currently
remain valid until the end of the packet and do not become invalid
until dissection of the next packet starts.

this may or may not change for tvbuff so it would be unsafe to assume
you can pass tvbuff pointers from one instance of a dissector to
another instance even if it occurs within the scope of one single
packet.





On 4/30/07, Liu Chunfang-CCL083 <ChunfangLiu@xxxxxxxxxxxx> wrote:
All,

Does anyone know the life cycle of "tvbuff_t *tvb" and " packet_info
*pinfo"?

I'm working on reassembling a special protocol's (name it here XXX) PDU.
Each Ethereal frame could include more than one XXX (header + PDU). The
first fragment's sequence number is not equal to 0 and may be out of
order. So I want to save the tvb and pinfo and use it later.

Thanks,
Chunfang