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

From: "Steven Le" <programminglist@xxxxxxxxx>
Date: Tue, 6 Mar 2007 00:01:26 -0800
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?