summaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc/svc.h
diff options
context:
space:
mode:
authorChuck Lever2007-02-12 09:53:33 +0100
committerLinus Torvalds2007-02-12 18:48:35 +0100
commit2442222283918c2d1c20ae651d95fe168757938b (patch)
treef4e120320c5b9538b4626e576fce67db201c4cc7 /include/linux/sunrpc/svc.h
parent[PATCH] knfsd: SUNRPC: Add a function to format the address in an svc_rqst fo... (diff)
downloadkernel-qcow2-linux-2442222283918c2d1c20ae651d95fe168757938b.tar.gz
kernel-qcow2-linux-2442222283918c2d1c20ae651d95fe168757938b.tar.xz
kernel-qcow2-linux-2442222283918c2d1c20ae651d95fe168757938b.zip
[PATCH] knfsd: SUNRPC: Use sockaddr_storage to store address in svc_deferred_req
Sockaddr_storage will allow us to store arbitrary socket addresses in the svc_deferred_req struct. 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>
Diffstat (limited to 'include/linux/sunrpc/svc.h')
-rw-r--r--include/linux/sunrpc/svc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h
index 1178689b9156..52db9c8985c5 100644
--- a/include/linux/sunrpc/svc.h
+++ b/include/linux/sunrpc/svc.h
@@ -292,8 +292,9 @@ static inline void svc_free_res_pages(struct svc_rqst *rqstp)
struct svc_deferred_req {
u32 prot; /* protocol (UDP or TCP) */
- struct sockaddr_in addr;
- struct svc_sock *svsk; /* where reply must go */
+ struct svc_sock *svsk;
+ struct sockaddr_storage addr; /* where reply must go */
+ size_t addrlen;
__be32 daddr; /* where reply must come from */
struct cache_deferred_req handle;
int argslen;