[PATCH] knfsd: SUNRPC: Provide room in svc_rqst for larger addresses
authorChuck Lever <chuck.lever@oracle.com>
Mon, 12 Feb 2007 08:53:34 +0000 (00:53 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 12 Feb 2007 17:48:36 +0000 (09:48 -0800)
commit27459f0940e16c68e080f5fc7e85aa9eb3f74528
treef13cd1f2005dda2b6115e2afbc49e1271b0d374b
parent2442222283918c2d1c20ae651d95fe168757938b
[PATCH] knfsd: SUNRPC: Provide room in svc_rqst for larger addresses

Expand the rq_addr field to allow it to contain larger addresses.

Specifically, we replace a 'sockaddr_in' with a 'sockaddr_storage', then
everywhere the 'sockaddr_in' was referenced, we use instead an accessor
function (svc_addr_in) which safely casts the _storage to _in.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Cc: Aurelien Charbon <aurelien.charbon@ext.bull.net>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/lockd/host.c
fs/lockd/svc4proc.c
fs/lockd/svcproc.c
fs/nfs/callback.c
fs/nfs/callback_xdr.c
fs/nfsd/nfs4state.c
fs/nfsd/nfscache.c
include/linux/sunrpc/svc.h
net/sunrpc/svcauth_unix.c
net/sunrpc/svcsock.c