Wireshark-dev: Re: [Wireshark-dev] BItfields Larger than 32 Bits
From: Michal Labedzki <[email protected]>
Date: Wed, 14 May 2014 10:06:00 +0200
I have new idea: leave current 32bit mask as is, add two new fields
(or [pointer to?] structure): "bit offset" and "bit length". This
works only for contiguous masks, but I think it is ok. For example:
bitoffset = 4
bitlength = 3
Result: ..110.....

This should be suffice for a long time (UINT32_MAX bits are supported).

Or... just use arrays[+array size] of [uint64 | uint32 | uint8, etc.]
 and fill it... (pros: can use 128 bitfield etc.)

On 13 May 2014 22:08, Kevin Cox <[email protected]> wrote:
> On 13/05/14 15:06, Alexis La Goutte wrote:
>> The better will be add 64bits bitfields... ;-)
> Unless I am missing something a 64 bit bitfield can't be used because
> the bitmask field of header_field_info is only 32 bits wide.
> Cheers,
> Kevin
> ___________________________________________________________________________
> Sent via:    Wireshark-dev mailing list <[email protected]>
> Archives:    http://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>              mailto:[email protected]?subject=unsubscribe


Pozdrawiam / Best regards
Michał Łabędzki, Software Engineer
Tieto Corporation

Product Development Services

http://www.tieto.com / http://www.tieto.pl
ASCII: Michal Labedzki
location: Swobodna 1 Street, 50-088 Wrocław, Poland
room: 5.01 (desk next to 5.08)
Please note: The information contained in this message may be legally
privileged and confidential and protected from disclosure. If the
reader of this message is not the intended recipient, you are hereby
notified that any unauthorised use, distribution or copying of this
communication is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to
the message and deleting it from your computer. Thank You.
Please consider the environment before printing this e-mail.
Tieto Poland spółka z ograniczoną odpowiedzialnością z siedzibą w
Szczecinie, ul. Malczewskiego 26. Zarejestrowana w Sądzie Rejonowym
Szczecin-Centrum w Szczecinie, XIII Wydział Gospodarczy Krajowego
Rejestru Sądowego pod numerem 0000124858. NIP: 8542085557. REGON:
812023656. Kapitał zakładowy: 4 271500 PLN