Hi, I am trying to dissect a byte field for protocol with following byte structure.
I was trying to get 1 byte unsigned int, AND with the
I am using above functions as an argument to add_text like:
But this is giving me all 0 values, and messes my further dissecting. I am fairly new to Wireshark development, but I was thinking I could just get int, bitwise and, then right shift to get the correct bits.
Is there a better way to do this?
By the way, you should try to avoid
answered 30 May '12, 12:20
Is stlv_offset a byte offset or bit offset?
I run into into a similar situation where tvb _ read_bits8 always seems to return 0, it turns out that I forget to multiply the running byte offset with 8.
answered 28 Feb, 12:22