From: Chuck Lever Date: Thu, 5 Mar 2009 11:20:40 +0000 (-0500) Subject: nfs-utils: Provide type-checked version of svc_getcaller() X-Git-Tag: nfs-utils-1-1-5~4 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=27a49079b03316eebcbc74197b73988b01b58ecc;hp=27a49079b03316eebcbc74197b73988b01b58ecc 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 Signed-off-by: Steve Dickson ---