ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Problem with a flag in a 32 bit field

From: Christopher Maynard <Chris.Maynard@xxxxxxxxx>
Date: Thu, 14 Oct 2010 14:05:23 +0000 (UTC)
Graham Bloice <graham.bloice@...> writes:

>         and the hf def is:
>           { &hf_item,
>           { "A flag", "dissector.flag", FT_BOOLEAN, 32,
>         TFS(&tfs_set_notset), 0x8000, "A flag", HFILL }},
>           

Does this work?

{ &hf_item,
{ "A flag", "dissector.flag", FT_BOOLEAN, 32, TFS(&tfs_set_notset), 0x80000000,
"A flag", HFILL }},