summaryrefslogtreecommitdiff
path: root/print-mptcp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-04-04 00:43:46 -0700
committerGuy Harris <guy@alum.mit.edu>2014-04-04 00:43:46 -0700
commit1cde6435df23876fb88998e38739def0dc7dca47 (patch)
treebdd17f2de3c9b1588da3ef07daf803f51761db0c /print-mptcp.c
parented58b28d5400642cbd797e280d12b3f1b638e850 (diff)
downloadtcpdump-1cde6435df23876fb88998e38739def0dc7dca47.tar.gz
Netdissectify the to-name resolution routines.
Have them take a netdissect_options * argument, and get the "no name resolution" flag from it. Move the declaration of dnaddr_string to addrtoname.h, along with the other XXX-to-string routines.
Diffstat (limited to 'print-mptcp.c')
-rw-r--r--print-mptcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-mptcp.c b/print-mptcp.c
index 292189af..6d763d57 100644
--- a/print-mptcp.c
+++ b/print-mptcp.c
@@ -320,13 +320,13 @@ add_addr_print(netdissect_options *ndo,
ND_PRINT((ndo, " id %u", add_addr->addr_id));
switch (ipver) {
case 4:
- ND_PRINT((ndo, " %s", ipaddr_string(add_addr->u.v4.addr)));
+ ND_PRINT((ndo, " %s", ipaddr_string(ndo, add_addr->u.v4.addr)));
if (opt_len == 10)
ND_PRINT((ndo, ":%u", EXTRACT_16BITS(add_addr->u.v4.port)));
break;
case 6:
#ifdef INET6
- ND_PRINT((ndo, " %s", ip6addr_string(add_addr->u.v6.addr)));
+ ND_PRINT((ndo, " %s", ip6addr_string(ndo, add_addr->u.v6.addr)));
#endif
if (opt_len == 22)
ND_PRINT((ndo, ":%u", EXTRACT_16BITS(add_addr->u.v6.port)));