aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/wimaxasncp
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2014-11-14 15:18:23 -0500
committerMichael Mann <mmann78@netscape.net>2014-11-15 00:41:10 +0000
commit62fd2acc968a63c75fe1e950dbde03f80bd96658 (patch)
tree956623e5defb95244269f501c03cd7b20eb9159e /plugins/wimaxasncp
parentba3bc1e72686ef386945dda72b0a85b63d9e1af8 (diff)
Eliminate proto_tree_add_text from some plugin dissector files.
Change-Id: Ib2d900833a8763307be6b1cfc8df20d7019d2706 Reviewed-on: https://code.wireshark.org/review/5313 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'plugins/wimaxasncp')
-rw-r--r--plugins/wimaxasncp/packet-wimaxasncp.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/plugins/wimaxasncp/packet-wimaxasncp.c b/plugins/wimaxasncp/packet-wimaxasncp.c
index c9b223ba93..5ba7dee551 100644
--- a/plugins/wimaxasncp/packet-wimaxasncp.c
+++ b/plugins/wimaxasncp/packet-wimaxasncp.c
@@ -105,6 +105,7 @@ static gint ett_wimaxasncp_tlv_ip_address_mask_list = -1;
static gint ett_wimaxasncp_tlv_ip_address_mask = -1;
static gint ett_wimaxasncp_tlv_eap = -1;
static gint ett_wimaxasncp_tlv_vendor_specific_information_field = -1;
+static gint ett_wimaxasncp_port_range = -1;
static expert_field ei_wimaxasncp_tlv_type = EI_INIT;
static expert_field ei_wimaxasncp_function_type = EI_INIT;
@@ -1395,24 +1396,25 @@ static void wimaxasncp_dissect_tlv_value(
{
guint16 portLow;
guint16 portHigh;
+ proto_tree* range_tree;
portLow = tvb_get_ntohs(tvb, offset);
portHigh = tvb_get_ntohs(tvb, offset + 2);
- proto_tree_add_text(
+ range_tree = proto_tree_add_subtree_format(
port_range_list_tree, tvb, offset, 4,
- "Port Range: %u-%u", portLow, portHigh);
+ ett_wimaxasncp_port_range, NULL, "Port Range: %u-%u", portLow, portHigh);
/* hidden items are for filtering */
item = proto_tree_add_item(
- port_range_list_tree, tlv_info->hf_port_low,
+ range_tree, tlv_info->hf_port_low,
tvb, offset, 2, ENC_BIG_ENDIAN);
PROTO_ITEM_SET_HIDDEN(item);
item = proto_tree_add_item(
- port_range_list_tree, tlv_info->hf_port_high,
+ range_tree, tlv_info->hf_port_high,
tvb, offset + 2, 2, ENC_BIG_ENDIAN);
PROTO_ITEM_SET_HIDDEN(item);
@@ -3244,7 +3246,8 @@ register_wimaxasncp_fields(const char* unused _U_)
&ett_wimaxasncp_tlv_ip_address_mask_list,
&ett_wimaxasncp_tlv_ip_address_mask,
&ett_wimaxasncp_tlv_eap,
- &ett_wimaxasncp_tlv_vendor_specific_information_field
+ &ett_wimaxasncp_tlv_vendor_specific_information_field,
+ &ett_wimaxasncp_port_range
};
static ei_register_info ei[] = {