freebsd-dev/sys/fs/nfsserver
Rick Macklem 57ef3db3a9 Fix the client IP address reported by nfsdumpstate for 64bit arch and NFSv4.1.
The client IP address was not being reported for some NFSv4 mounts by
nfsdumpstate. Upon investigation, two problems were found for mounts
using IPv4. One was that the code (originally written and tested on i386)
assumed that a "u_long" was a "uint32_t" and would exactly store an
IPv4 host address. Not correct for 64bit arches.
Also, for NFSv4.1 mounts, the field was not being filled in. This was
basically correct, because NFSv4.1 does not use a callback address.
However, it meant that nfsdumpstate could not report the client IP addr.
This patch should fix both of these issues.
For IPv6, the address will still not be reported. The original NFSv4 RFC
only specified IPv4 callback addresses. I think this has changed and, if so,
a future commit to fix reporting of IPv6 addresses will be needed.

Reported by:	manu
PR:		223036
MFC after:	2 weeks
2017-10-15 22:22:27 +00:00
..
nfs_fha_new.c Improve FHA locality control for NFS read/write requests. 2017-07-31 15:23:19 +00:00
nfs_fha_new.h Revamp the old NFS server's File Handle Affinity (FHA) code so that 2013-04-17 21:00:22 +00:00
nfs_nfsdcache.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfs_nfsdkrpc.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfs_nfsdport.c Rename vfs.nfsd.enable_uidtostring to vfs.nfs.enable_uidtostring. 2017-07-19 09:59:32 +00:00
nfs_nfsdserv.c Fix the client IP address reported by nfsdumpstate for 64bit arch and NFSv4.1. 2017-10-15 22:22:27 +00:00
nfs_nfsdsocket.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfs_nfsdstate.c Fix the client IP address reported by nfsdumpstate for 64bit arch and NFSv4.1. 2017-10-15 22:22:27 +00:00
nfs_nfsdsubs.c Fix the NFS client/server so that it actually uses the 64bit ino_t filenos. 2017-06-18 21:48:31 +00:00