Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] BItfields Larger than 32 Bits

From: Kevin Cox <kevincox@xxxxxxxxxxx>
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