aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ecp-oui.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-03-01 23:03:27 -0500
committerAnders Broman <a.broman58@gmail.com>2015-03-03 09:02:25 +0000
commitb7ef891af868b6026391d3473c0b43e7229e5b31 (patch)
tree073d847595f777447f804937957324fcbae9c653 /epan/dissectors/packet-ecp-oui.c
parent599dd4ffcc31bb03e44fd4ed72db4d6b8fbc38f0 (diff)
Replace tvb_get_ptr calls with a better API choice.
Just reduces the overall tvb_get_ptr usage count in the dissector directory. Change-Id: I455dc4cc9b082ecccdd254a2e5121f3353b5a812 Reviewed-on: https://code.wireshark.org/review/7491 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-ecp-oui.c')
-rw-r--r--epan/dissectors/packet-ecp-oui.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/epan/dissectors/packet-ecp-oui.c b/epan/dissectors/packet-ecp-oui.c
index 6f2cc5bbc9..06325843a5 100644
--- a/epan/dissectors/packet-ecp-oui.c
+++ b/epan/dissectors/packet-ecp-oui.c
@@ -159,7 +159,6 @@ dissect_vdp_fi_macvid(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, g
gint i;
guint16 entries;
guint32 tempOffset = offset;
- const guint8 *mac_addr = NULL;
proto_tree *ecp_vdp_tlv_fi_subtree;
@@ -171,11 +170,7 @@ dissect_vdp_fi_macvid(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, g
tempOffset += 2;
for (i=0; i < entries; i++) {
- mac_addr = tvb_get_ptr(tvb, tempOffset, 6);
-
- if (tree) {
- proto_tree_add_ether(ecp_vdp_tlv_fi_subtree, hf_ecp_vdp_mac, tvb, tempOffset, 6, mac_addr);
- }
+ proto_tree_add_item(ecp_vdp_tlv_fi_subtree, hf_ecp_vdp_mac, tvb, tempOffset, 6, ENC_NA);
tempOffset += 6;