summaryrefslogtreecommitdiff
path: root/print-nfs.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-nfs.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-nfs.c')
-rw-r--r--print-nfs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/print-nfs.c b/print-nfs.c
index a2d3aafe..98cdabdc 100644
--- a/print-nfs.c
+++ b/print-nfs.c
@@ -170,15 +170,15 @@ print_nfsaddr(netdissect_options *ndo,
switch (IP_V((struct ip *)bp)) {
case 4:
ip = (struct ip *)bp;
- strlcpy(srcaddr, ipaddr_string(&ip->ip_src), sizeof(srcaddr));
- strlcpy(dstaddr, ipaddr_string(&ip->ip_dst), sizeof(dstaddr));
+ strlcpy(srcaddr, ipaddr_string(ndo, &ip->ip_src), sizeof(srcaddr));
+ strlcpy(dstaddr, ipaddr_string(ndo, &ip->ip_dst), sizeof(dstaddr));
break;
#ifdef INET6
case 6:
ip6 = (struct ip6_hdr *)bp;
- strlcpy(srcaddr, ip6addr_string(&ip6->ip6_src),
+ strlcpy(srcaddr, ip6addr_string(ndo, &ip6->ip6_src),
sizeof(srcaddr));
- strlcpy(dstaddr, ip6addr_string(&ip6->ip6_dst),
+ strlcpy(dstaddr, ip6addr_string(ndo, &ip6->ip6_dst),
sizeof(dstaddr));
break;
#endif