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

Ethereal-dev: [Ethereal-dev] dissecting PDU with variable length

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

From: Lars Dörner <mail@xxxxxxxxx>
Date: Thu, 12 Jan 2006 15:30:00 +0100
Hello

I want to dissect a PDU that is build like this :

2* 1 Byte standard information
1* 2 Byte number of encodings

then there is following for each Encoding:

header :  	8 Byte Struct 
		4 Byte  kind of encoding 

After that there has an automat do be started for encoding the unknown!!!
number of Bytes requesting 
Byte for Byte till he reached the end of the Data.

The number of Data is different for each encoding. 

The Protocol is running on TCP.

I have no idea how to realize that. I need a description or an example
especially of the functions 
I have to use.

Thx