ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] doubt regarding the creation of a disector for the PCE proto

From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Tue, 07 Aug 2007 08:00:27 +0200
Hi,

Wireshark can help you here. See doc/README.developer, chapter 2.7.1 Using tcp_dissect_pdus().

Thanx,
Jaap

Silvia Cristina Tejedor wrote:
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.