I am writing a dissector for a protocol which contains bitfields that are larger than 32 bits. For instance there is one bitfield that is 48-bits long, with other bitfields being 80-bits long. Setting the bitmask for the field in the I believe that there are a number of possible ways to proceed:
Neither method will be as nice or as easy as using the inbuilt bitmask method. It would be nice to display the individual fields as the standard bitmask dissection (with the bit pattern preceding the field title and contents) but I cannot think of a nice way of doing this. What are the pros and cons of these two methods and which should I choose? Is there another, better way to proceed that I haven't thought of? asked 18 Apr '13, 16:12 GrahamS |
One Answer:
I'd go with method 1 (using I'm by no means an expert in this area, though, so take that with a pinch of salt. answered 21 Apr '13, 13:56 mwojcik |