aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-snaeth.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2014-09-06 08:44:23 -0400
committerMichael Mann <mmann78@netscape.net>2014-09-09 01:25:36 +0000
commit80407a46df538011c1dcea96714c401a4078a697 (patch)
treef62b063004ba6a8946c552c6a3180cb8f417cd83 /epan/dissectors/packet-snaeth.c
parent124923b02f3113a1f2aeae205417a18828671850 (diff)
Eliminate proto_tree_add_text from some of the dissectors.
Other minor cleanups while in the area. Change-Id: I99096ade9c69a4c148962d45bb6b0bd775040ba1 Reviewed-on: https://code.wireshark.org/review/4020 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-snaeth.c')
-rw-r--r--epan/dissectors/packet-snaeth.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/epan/dissectors/packet-snaeth.c b/epan/dissectors/packet-snaeth.c
index 77a08ee9f0..6dfc7ab528 100644
--- a/epan/dissectors/packet-snaeth.c
+++ b/epan/dissectors/packet-snaeth.c
@@ -36,6 +36,7 @@ void proto_reg_handoff_snaeth(void);
static int proto_snaeth = -1;
static int hf_snaeth_len = -1;
+static int hf_snaeth_padding = -1;
static gint ett_snaeth = -1;
@@ -60,7 +61,7 @@ dissect_snaeth(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
ENC_NA);
snaeth_tree = proto_item_add_subtree(snaeth_ti, ett_snaeth);
proto_tree_add_uint(snaeth_tree, hf_snaeth_len, tvb, 0, 2, len);
- proto_tree_add_text(snaeth_tree, tvb, 2, 1, "Padding");
+ proto_tree_add_item(snaeth_tree, hf_snaeth_padding, tvb, 2, 1, ENC_NA);
}
/*
@@ -83,6 +84,9 @@ proto_register_snaeth(void)
{ &hf_snaeth_len,
{ "Length", "snaeth.len", FT_UINT16, BASE_DEC, NULL, 0x0,
"Length of LLC payload", HFILL }},
+ { &hf_snaeth_padding,
+ { "Padding", "snaeth.padding", FT_UINT8, BASE_HEX, NULL, 0x0,
+ NULL, HFILL }},
};
static gint *ett[] = {
&ett_snaeth,