ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

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