Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Dissect a packet base header bits

From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Tue, 6 Mar 2007 19:04:45 +0100 (CET)
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?
>