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

Wireshark-dev: Re: [Wireshark-dev] Replace TRUE/FALSE with proper ENC_* in proto_tree_add_item(

From: Anders Broman <a.broman@xxxxxxxxxxxx>
Date: Wed, 05 Oct 2011 20:54:28 +0200
Chris Maynard skrev 2011-10-05 20:36:
Bill Meier<wmeier@...>  writes:

In this case, given the specifics, I found it fairly simple to do what I
needed in Perl.
Should these functions be modified to take an encoding argument instead of a
little_endian argument, then the Perl script run on them as well to convert
TRUE/FALSE to ENC_LITTLE_ENDIAN/ENC_BIG_ENDIAN?

tvb_fake_unicode()
tvb_get_ephemeral_faked_unicode()
proto_tree_add_bitmask()
proto_tree_add_bitmask_text()
proto_item_add_bitmask_tree()<= static in epan/proto.c only

- Chris
proto_tree_add_bits_item()
proto_tree_add_bits_item_ret_val()
should also have the FALSE value changed
- Anders
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list<wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
              mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe