diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-04-04 00:43:46 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-04-04 00:43:46 -0700 |
commit | 1cde6435df23876fb88998e38739def0dc7dca47 (patch) | |
tree | bdd17f2de3c9b1588da3ef07daf803f51761db0c /print-tcp.c | |
parent | ed58b28d5400642cbd797e280d12b3f1b638e850 (diff) | |
download | tcpdump-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-tcp.c')
-rw-r--r-- | print-tcp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/print-tcp.c b/print-tcp.c index 5d726af7..ee9e764e 100644 --- a/print-tcp.c +++ b/print-tcp.c @@ -179,8 +179,8 @@ tcp_print(netdissect_options *ndo, ch = '\0'; if (!ND_TTEST(tp->th_dport)) { ND_PRINT((ndo, "%s > %s: [|tcp]", - ipaddr_string(&ip->ip_src), - ipaddr_string(&ip->ip_dst))); + ipaddr_string(ndo, &ip->ip_src), + ipaddr_string(ndo, &ip->ip_dst))); return; } @@ -193,9 +193,9 @@ tcp_print(netdissect_options *ndo, if (ip6) { if (ip6->ip6_nxt == IPPROTO_TCP) { ND_PRINT((ndo, "%s.%s > %s.%s: ", - ip6addr_string(&ip6->ip6_src), + ip6addr_string(ndo, &ip6->ip6_src), tcpport_string(sport), - ip6addr_string(&ip6->ip6_dst), + ip6addr_string(ndo, &ip6->ip6_dst), tcpport_string(dport))); } else { ND_PRINT((ndo, "%s > %s: ", @@ -206,9 +206,9 @@ tcp_print(netdissect_options *ndo, { if (ip->ip_p == IPPROTO_TCP) { ND_PRINT((ndo, "%s.%s > %s.%s: ", - ipaddr_string(&ip->ip_src), + ipaddr_string(ndo, &ip->ip_src), tcpport_string(sport), - ipaddr_string(&ip->ip_dst), + ipaddr_string(ndo, &ip->ip_dst), tcpport_string(dport))); } else { ND_PRINT((ndo, "%s > %s: ", |