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-sctp.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-sctp.c')
-rw-r--r-- | print-sctp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/print-sctp.c b/print-sctp.c index 687c36f5..e3864968 100644 --- a/print-sctp.c +++ b/print-sctp.c @@ -456,17 +456,17 @@ void sctp_print(netdissect_options *ndo, #ifdef INET6 if (ip6) { ND_PRINT((ndo, "%s.%d > %s.%d: sctp", - ip6addr_string(&ip6->ip6_src), + ip6addr_string(ndo, &ip6->ip6_src), sourcePort, - ip6addr_string(&ip6->ip6_dst), + ip6addr_string(ndo, &ip6->ip6_dst), destPort)); } else #endif /*INET6*/ { ND_PRINT((ndo, "%s.%d > %s.%d: sctp", - ipaddr_string(&ip->ip_src), + ipaddr_string(ndo, &ip->ip_src), sourcePort, - ipaddr_string(&ip->ip_dst), + ipaddr_string(ndo, &ip->ip_dst), destPort)); } |