Re: [Wireshark-dev] Don't need the chaff

2006-11-06 Thread Jaap Keuter
Hi, See this blurb in README.developer bitmask --- If the field is a bitfield, then the bitmask is the mask which will leave only the bits needed to make the field when ANDed with a value. The proto_tree routines will calculate 'bitshift' automatically from 'bitmask', by finding the rightmost

[Wireshark-dev] Don't need the chaff

2006-11-06 Thread Andrew.Martin
Hi,   I'm developing a dissector, now within a packet header there are 2 bytes, 5 bits relate to flags and 3 bits refer to the message. I've managed to seperate the flags into their individual bits, but I need all three of the remaining bits.   How do I do that?   Cheers   This email and a