Wireshark mailing list archives
Re: What type should I use for 12 byte field in my dissector??
From: Guy Harris <guy () alum mit edu>
Date: Thu, 6 May 2010 19:08:09 -0700
On May 6, 2010, at 7:02 PM, Craig Bumpstead wrote:
What data type can I use when the proprietary protocol says that the field is 12 bytes (96 Bit)????
FT_BYTES. There *is* no 12-byte integral data type in Wireshark, so there *is* no FT_UINT?? that you can use to display it as a 96-bit integer. Or don't use proto_tree_add_item(), but, instead, fetch it by hand, convert it to an nstime_t (seconds since January 1, 1970, 00:00:00 UTC, and nanoseconds), and add it as an FT_ABSOLUTE_TIME, if that conversion is possible. ___________________________________________________________________________ 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:
- What type should I use for 12 byte field in my dissector?? Craig Bumpstead (May 06)
- Re: What type should I use for 12 byte field in my dissector?? Guy Harris (May 06)
- Packet not reaching dissector Craig Bumpstead (May 08)
- Re: Packet not reaching dissector Bill Meier (May 08)
- Packet not reaching dissector Craig Bumpstead (May 08)
- Re: What type should I use for 12 byte field in my dissector?? Guy Harris (May 06)