[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>
Showing
- fs/lockd/host.c 1 addition, 1 deletionfs/lockd/host.c
- fs/lockd/svc4proc.c 4 additions, 2 deletionsfs/lockd/svc4proc.c
- fs/lockd/svcproc.c 4 additions, 2 deletionsfs/lockd/svcproc.c
- fs/nfs/callback.c 1 addition, 1 deletionfs/nfs/callback.c
- fs/nfs/callback_xdr.c 2 additions, 2 deletionsfs/nfs/callback_xdr.c
- fs/nfsd/nfs4state.c 9 additions, 9 deletionsfs/nfsd/nfs4state.c
- fs/nfsd/nfscache.c 1 addition, 1 deletionfs/nfsd/nfscache.c
- include/linux/sunrpc/svc.h 15 additions, 2 deletionsinclude/linux/sunrpc/svc.h
- net/sunrpc/svcauth_unix.c 2 additions, 1 deletionnet/sunrpc/svcauth_unix.c
- net/sunrpc/svcsock.c 12 additions, 7 deletionsnet/sunrpc/svcsock.c
Loading
Please register or sign in to comment