Wireshark-dev: Re: [Wireshark-dev] dissecting bit
From: Brian Oleksa <oleksab@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 18 May 2011 12:56:56 -0400
Jakub

Sorry about the screenshots. I will not do that again.

How should I start dissecting this then..?? How would I start dissecting the version..??

I believe that once I get started off on the right foot...I can take it from there.

Thanks,
Brian



On 5/18/2011 11:33 AM, Jakub Zawadzki wrote:
On Wed, May 18, 2011 at 10:19:36AM -0400, Brian Oleksa wrote:
Below is all the my current code base and screen shots. Also attached is
the layout of the packet:
Please don't write in HTML and don't send screenshots to the mailing list,
it might be only 323 kB or 100 kB, but when you multiply it by XXX users
it becomes MB's.

[...]
Wireshark _bit* API accept cases where 0 bit is MSB (0x80),
and 7 bit is LSB (0x01).

Reading MIL-STD-2045-47001C spec this is reversed, i.e.
0-bit is LSB (0x01 or 2^0) aand 7-bit is MSB (0x80 or 2^7)

Bit endianess [1] in tvb_get_bitsN() is not supported,
so you need to implement it.

Working with bits is really phun, so enjoy! ;-)

[1] http://en.wikipedia.org/wiki/Bit_numbering

Cheers,
   Jakub.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list<wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
              mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe