diff options
author | Michael Mann <mmann78@netscape.net> | 2012-09-23 00:12:14 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2012-09-23 00:12:14 +0000 |
commit | b89a06a3e15546d177ba136bb46bfe1de97fa4fc (patch) | |
tree | 713968875728ff8e136aa9aad2a94b52872e6ac4 /epan/dissectors/packet-x25.c | |
parent | 37b6ca2ce8ba54810f54f86c5c17170315ccd0eb (diff) |
replaced decode_boolean_bitfield calls with itemized filters
svn path=/trunk/; revision=45059
Diffstat (limited to 'epan/dissectors/packet-x25.c')
-rw-r--r-- | epan/dissectors/packet-x25.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/epan/dissectors/packet-x25.c b/epan/dissectors/packet-x25.c index aa0e454a60..47c296b2e4 100644 --- a/epan/dissectors/packet-x25.c +++ b/epan/dissectors/packet-x25.c @@ -182,6 +182,7 @@ static gint hf_x25_reassembled_length = -1; static gint hf_x25_fast_select = -1; static gint hf_x25_icrd = -1; static gint hf_x25_reverse_charging = -1; +static gint hf_x25_charging_info = -1; static const value_string vals_modulo[] = { { 1, "8" }, @@ -712,10 +713,7 @@ dump_facilities(proto_tree *tree, int *offset, tvbuff_t *tvb) byte1 = tvb_get_guint8(tvb, *offset + 1); proto_tree_add_text(fac_subtree, tvb, *offset+1, 1, "Parameter : %02X", byte1); - proto_tree_add_text(fac_subtree, tvb, *offset+1, 1, "%s", - decode_boolean_bitfield(byte1, 0x01, 1*8, - "Charging information requested", - "Charging information not requested")); + proto_tree_add_item(fac_subtree, hf_x25_charging_info, tvb, *offset+1, 1, ENC_BIG_ENDIAN); } break; case X25_FAC_THROUGHPUT: @@ -2682,6 +2680,10 @@ proto_register_x25(void) { &hf_x25_reverse_charging, { "Reverse charging", "x25.reverse_charging", FT_BOOLEAN, 8, TFS(&x25_reverse_charging_val), 0x01, NULL, HFILL }}, + + { &hf_x25_charging_info, + { "Charging information", "x25.charging_info", FT_BOOLEAN, 8, TFS(&tfs_requested_not_requested), 0x01, + NULL, HFILL }}, }; static gint *ett[] = { &ett_x25, |