diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2011-02-16 03:01:19 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2011-02-16 03:01:19 +0000 |
commit | deabd5ce3af59c8e465b5f06213cfaff77a1c06b (patch) | |
tree | 8dbaba75fdfa4dadad66aac814cd69671dfee141 /epan/dissectors/packet-aruba-adp.c | |
parent | 76edd1b8f5b4dfb46f1a331aa166008777cf7e36 (diff) | |
download | wireshark-deabd5ce3af59c8e465b5f06213cfaff77a1c06b.tar.gz |
Use tvb_ether_to_str()
svn path=/trunk/; revision=35959
Diffstat (limited to 'epan/dissectors/packet-aruba-adp.c')
-rw-r--r-- | epan/dissectors/packet-aruba-adp.c | 8 |
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: |