ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] Get 3 bytes

From: "Steven Le" <programminglist@xxxxxxxxx>
Date: Mon, 12 Mar 2007 15:32:29 -0800

I define a header type to be FT_UINT24
&....
....FT_UNIT24, BASE_DEC, NULL,
0x00007ff (bitmasking 3 bytes)

How to get 3 bytes and add it to protocol subtree?
guint32 = tvb_get_leoh24(tvb, 3); ???

guint32 is 32 bits --> so type mismatch???