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

Wireshark-dev: [Wireshark-dev] Dissecting bit fields

From: Kai Blin <blin@xxxxxxx>
Date: Mon, 29 Jan 2007 17:24:54 +0100
Hi folks,

I was wondering if there was a nice method to dissect a 32bit bit field, other 
than reading it into 32 seperate variables and dissecting it 32 times with a 
different bit flag (which seems to be the method of choice in the dissectors 
I looked up).

Cheers,
Kai
-- 
Kai Blin, <blin At gmx Dot net>
WorldForge developer    http://www.worldforge.org/
Wine developer          http://wiki.winehq.org/KaiBlin/
--
Ninjas and Pirates agree: Cowboys suck!

Attachment: pgp4pqMMlfU1F.pgp
Description: PGP signature