Wireshark mailing list archives
BItfields Larger than 32 Bits
From: Kevin Cox <kevincox () kevincox ca>
Date: Tue, 13 May 2014 14:19:51 -0400
Hello, I was attempting to dissect a 64 bit bitfield and was wondering what the best/preferred method was. I saw a question on ask.wireshark.org[0] which had a single answer the said to use a text field. [0] http://ask.wireshark.org/questions/20599/dissecting-bitfields-larger-than-32-bits I was wondering if there is a better way to do this. My best idea would be to parse it as two separate 32 bit bitfields however this is not as elegant. If I was to parse it this way I also don't know what values to set in the hf struct either. { &hf_a_field, { "Name", "id", FT_BOOLEAN, 32, NULL, MY_MASK, NULL, HFILL } }, What should the parent bitfield length be? I think it should be 32 but I'm not sure. Thanks in advance for any recommendations. Kevin
Attachment:
signature.asc
Description: OpenPGP digital signature
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- BItfields Larger than 32 Bits Kevin Cox (May 13)
- Re: BItfields Larger than 32 Bits Alexis La Goutte (May 13)
- Re: BItfields Larger than 32 Bits Kevin Cox (May 13)
- Re: BItfields Larger than 32 Bits Michal Labedzki (May 14)
- Re: BItfields Larger than 32 Bits Shanks, Graham (UK) (May 14)
- Re: BItfields Larger than 32 Bits Michal Labedzki (May 14)
- Re: BItfields Larger than 32 Bits Kevin Cox (May 13)
- Re: BItfields Larger than 32 Bits Alexis La Goutte (May 13)