Wireshark-dev: [Wireshark-dev] doubt regarding the creation of a disector for the PCE protocol
From: "Silvia Cristina Tejedor" <[email protected]>
Date: Mon, 6 Aug 2007 23:58:53 +0200
Dear Mr,
 
I m working on the packet reception and treatement with the PCE protocol which runs over TCP. The PCE protocol takes the TCP data and "knows" (reading this information from the PCE header) the message length, which can be contained in several TCP packets, and so, can use not an entire numer of TCP packets  but always 1 or less(a half of a packet forexample), and then the following PCE packet can be contained in the second half of the first TCP packet and the first half of the followig TCP packet. My doubt is, how can I keep the information of the position in which the PCE packet starts if the former PCE packet doesn't use the hole TCP previous packet? I was thinking in saving this information in a variable, but each time that the protocol reads a new TCP packet, all variables are resarted and I don't know how to save that information.
 
Thank you very much,
 
Silvia Tejedor.