SUNRPC: handle IPv6 PKTINFO when extracting destination address
authorChuck Lever <chuck.lever@oracle.com>
Mon, 13 Jul 2009 14:54:26 +0000 (10:54 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 14 Jul 2009 21:39:46 +0000 (17:39 -0400)
commit7702ce40bc84a02e88aa20f95333df8cff5f9d37
tree72e9e0fb07175486cf2b6996cf8d94b1d0d7c466
parent9208faf297dddfa97a86d7224b6bf94f2e346dd9
SUNRPC: handle IPv6 PKTINFO when extracting destination address

PKTINFO is needed to scrape the caller's IP address off the socket so
RPC datagram replies are routed correctly.  Fill in missing pieces in
the kernel RPC server's UDP receive path to request IPv6 PKTINFO and
correctly parse the IPv6 cmsg header.

Without this patch, kernel RPC services drop all incoming requests on
UDP on IPv6.

Related commit: 7a37f5787e76bf1765c1add3a9a7163f841a28bb

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
net/sunrpc/svcsock.c