aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bat.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-02-14 18:01:53 -0500
committerMichael Mann <mmann78@netscape.net>2015-02-22 02:53:48 +0000
commit8d5da72ff9255a3fd494fb2d842a7ecb9d2c7c14 (patch)
tree3e48036d26dedf29361132faec1682c9aa6fb24a /epan/dissectors/packet-bat.c
parentddafa7e381c188f0f282908003518be44130a3b6 (diff)
Add tvb_address_with_resolution_to_str.
Convert dissectors to using the API where appropriate. Change-Id: I059582f73a75635d4a0338d02d4c4b212162480b Reviewed-on: https://code.wireshark.org/review/7296 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-bat.c')
-rw-r--r--epan/dissectors/packet-bat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-bat.c b/epan/dissectors/packet-bat.c
index dbf7413b02..795f575566 100644
--- a/epan/dissectors/packet-bat.c
+++ b/epan/dissectors/packet-bat.c
@@ -378,8 +378,8 @@ static void dissect_bat_gw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
col_add_fstr(pinfo->cinfo, COL_INFO, "Type=%s",
val_to_str(gw_packeth->type, gw_packettypenames, "Unknown (0x%02x)"));
if (ip != 0) {
- col_append_fstr(pinfo->cinfo, COL_INFO, " IP: %s (%s)",
- get_hostname(ip), tvb_ip_to_str(tvb, ip_pos));
+ col_append_fstr(pinfo->cinfo, COL_INFO, " IP: %s",
+ tvb_address_with_resolution_to_str(wmem_packet_scope(), tvb, AT_IPv4, ip_pos));
}