Wireshark-bugs: [Wireshark-bugs] [Bug 4478] Implement little endian support for tvb_get_bits[16|
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4478
--- Comment #4 from Vincent Pelletier <plr.vincent@xxxxxxxxx> 2010-12-31 15:12:41 PST ---
(In reply to comment #3)
> Now comes the LE results ... but this can be confusing because are we talking
> about LE byte ordering or LE bit ordering?
I think you found the problem.
Reading again my description, I realize it's biased toward the result I needed
from the data I had to analyze.
Which is:
- bit fields smaller than a byte
- 2-bytes words in LE byte ordering
- each byte using BE bit ordering
So I needed to find a way to extract, say, 0x3 from {0x80, 0x1}, given offset =
7 bits and length = 2 bits.
Maybe this won't fit in just one function, and byte ordering should be "fixed"
independently of bit field extraction...
--
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.