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

From: "Shanks, Graham (UK)" <graham.shanks@xxxxxxxxxxxxxx>
Date: Wed, 14 May 2014 08:36:08 +0000
On 13 May 2014 22:08, Kevin Cox <kevincox@xxxxxxxxxxx> wrote:
> My best idea would be to parse it as two separate 32 bit bitfields however this is not as elegant

The problem with parsing  it as two 32bit bitfields is if, as in my case, a field straddles the 32bit boundary. There is no nice way to extract such a field. I went down the path of not using bitfields at all and using proto_tree_add_text.

Regards,
Graham (aka  GrahamS)

BAE Systems Integrated System Technologies Limited
Registered Office: Warwick House, PO Box 87, Farnborough Aerospace Centre, Farnborough, Hants, GU14 6YU, UK
Registered in England & Wales No: 3456325 
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************