The best way to learn such a thing is, to take a look at existing dissectors and their implementation. ip.frag_offset for example. Just search for the hf definition and its use in the source code
kind regards, Roland
Hi All,
I
am a wireshark newbie & I am trying to write a new dissector from
scratch and I am looking for the best way to dissect the presence bits
in a bit field based on position.
My problem is :
I
have 64 bit data represented in the form of a bitfield, where the
presence of b1 at a particular position tells if a particular command is
supported. This 64 bit data is used for conveying how many commands(max
supported is 64) are implemented.
Can anyone help point me to any leads/examples of how I can do this.
Thanks,
Manoj
___________________________________________________________________________
Sent via: Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives: https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe