aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-aruba-adp.c
diff options
context:
space:
mode:
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2011-02-16 03:01:19 +0000
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2011-02-16 03:01:19 +0000
commit46bc18b74c664c1b5fa6579e62fe8acd7f2d1625 (patch)
tree8dbaba75fdfa4dadad66aac814cd69671dfee141 /epan/dissectors/packet-aruba-adp.c
parentc78c52ea1d4e3dfd929968329aecfc82fb246933 (diff)
Use tvb_ether_to_str()
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35959 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-aruba-adp.c')
-rw-r--r--epan/dissectors/packet-aruba-adp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-aruba-adp.c b/epan/dissectors/packet-aruba-adp.c
index bd62cb084a..109472e4c9 100644
--- a/epan/dissectors/packet-aruba-adp.c
+++ b/epan/dissectors/packet-aruba-adp.c
@@ -59,7 +59,7 @@ dissect_aruba_adp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree *ti = NULL;
proto_tree *aruba_adp_tree = NULL;
guint16 type;
- const guint8 *src_mac;
+ const gchar *mac_str;
const gchar *switchip;
@@ -85,12 +85,12 @@ dissect_aruba_adp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
case ADP_REQUEST:
proto_tree_add_item(aruba_adp_tree, hf_adp_mac, tvb, 6, 6, FALSE);
- src_mac = tvb_get_ptr(tvb, 6, 6);
+ mac_str = tvb_ether_to_str(tvb, 6);
if (check_col(pinfo->cinfo, COL_INFO))
- col_add_fstr(pinfo->cinfo, COL_INFO, "ADP Request Src MAC: %s", ether_to_str(src_mac));
+ col_add_fstr(pinfo->cinfo, COL_INFO, "ADP Request Src MAC: %s", mac_str);
- proto_item_append_text(ti, ", Request Src MAC: %s", ether_to_str(src_mac));
+ proto_item_append_text(ti, ", Request Src MAC: %s", mac_str);
break;
case ADP_RESPONSE: