diff options
author | Michael Mann <mmann78@netscape.net> | 2015-01-06 14:52:54 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-01-07 12:38:07 +0000 |
commit | ed9a9be5df40de6aa1f2eb8da1fff08c23680baf (patch) | |
tree | 618abe46dd6d17597f2849a6564e34ba912f9ccb /epan/dissectors/packet-ans.c | |
parent | 4088a8286d9e2dfd8f2b1c316472d768cbefec8e (diff) |
Use tvb_address_to_str as an optimization
Change-Id: Ic79d8bdc58b84087531b298b3b27273c1afccd4f
Reviewed-on: https://code.wireshark.org/review/6357
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-ans.c')
-rw-r--r-- | epan/dissectors/packet-ans.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/epan/dissectors/packet-ans.c b/epan/dissectors/packet-ans.c index 14edd0870c..b4a5283058 100644 --- a/epan/dissectors/packet-ans.c +++ b/epan/dissectors/packet-ans.c @@ -70,17 +70,14 @@ dissect_ans(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree *ans_tree = NULL; guint16 sender_id; guint32 seq_num; - address team_id; col_set_str(pinfo->cinfo, COL_PROTOCOL, "Intel ANS probe"); seq_num = tvb_get_ntohl(tvb, 4); sender_id = tvb_get_ntohs(tvb, 8); - SET_ADDRESS(&team_id, AT_ETHER, 6, tvb_get_ptr(tvb, 10, 6)); - col_add_fstr(pinfo->cinfo, COL_INFO, "Sequence: %u, Sender ID %u, Team ID %s", - seq_num, sender_id, address_to_str(wmem_packet_scope(), &team_id)); + seq_num, sender_id, tvb_ether_to_str(tvb, 10)); if (tree) { ti = proto_tree_add_item(tree, proto_ans, tvb, 0, -1, ENC_NA); |