From: NeilBrown Date: Tue, 6 Mar 2007 09:42:21 +0000 (-0800) Subject: [PATCH] knfsd: use recv_msg to get peer address for NFSD instead of code-copying X-Git-Tag: v2.6.21-rc3~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a37f5787e76bf1765c1add3a9a7163f841a28bb;p=pandora-kernel.git [PATCH] knfsd: use recv_msg to get peer address for NFSD instead of code-copying The sunrpc server code needs to know the source and destination address for UDP packets so it can reply properly. It currently copies code out of the network stack to pick the pieces out of the skb. This is ugly and causes compile problems with the IPv6 stuff. So, rip that out and use recv_msg instead. This is a much cleaner interface, but has a slight cost in that the checksum is now checked before the copy, so we don't benefit from doing both at the same time. This can probably be fixed. Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed