]> git.decadent.org.uk Git - nfs-utils.git/commit
nfs-utils: Provide type-checked version of svc_getcaller()
authorChuck Lever <chuck.lever@oracle.com>
Thu, 5 Mar 2009 11:20:40 +0000 (06:20 -0500)
committerSteve Dickson <steved@redhat.com>
Thu, 5 Mar 2009 11:20:40 +0000 (06:20 -0500)
commit27a49079b03316eebcbc74197b73988b01b58ecc
treef24ddd9ce2c3d2cb9cc508c9ce27ae966c79dc91
parent5529fdbb4acb2507b79acf07e08c2a88c1df9e38
nfs-utils: Provide type-checked version of svc_getcaller()

TI-RPC's version of the svc_getcaller() macro points to a sockaddr_in6,
not a sockaddr_in, though for AF_INET callers, an AF_INET address
resides there.  To squelch compiler warnings when the TI-RPC version of
the svc_req structure is used, add inline helpers with appropriate
type casting.

Note that tcp_wrappers support only AF_INET addresses for now.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
support/include/rpcmisc.h
utils/mountd/mount_dispatch.c
utils/mountd/mountd.c
utils/statd/callback.c
utils/statd/monitor.c
utils/statd/simu.c
utils/statd/statd.c