Wireshark-dev: Re: [Wireshark-dev] Dissect a packet base header bits
From: "Steven Le" <programminglist@xxxxxxxxx>
Date: Tue, 6 Mar 2007 19:05:50 -0800
Thanks jaap, here is more information:

Header is 1byte and its format
7 6 5     4 3 2 1 0  bit
type        XXXXX
Messages is 20 bytes
Binary data is unknown
After getting the first 3 bits from header:
 
Format of this payload will depend on the first 3 bits of header (bit Type field)
-------------------------------------------------
 Header|Message              if first 3 bits (type) is 000
 Header|Binary Data                                         001
 Header|Message|Binary Data                           111
-------------------------------------------------

On 3/6/07, Jaap Keuter < jaap.keuter@xxxxxxxxx> wrote:
Hi,

You'll have to provide a little more detail than this. What size are
header, message and data? Are they packed in a byte? format stuff like
that.

Thanx,
Jaap


On Tue, 6 Mar 2007, Steven Le wrote:

> I have to dissect this payload.
>
> Header  | message | data
>
> After getting the first 3 bits from header: 000 -> Header
>                                                                         010
> -> Header|Message
>                                                                         001
> -> Header|Binary Data
>                                                                         011
> -> Header|Message|Binary Data
>
> How can I hand off from Header to certain block?
>

_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
http://www.wireshark.org/mailman/listinfo/wireshark-dev