aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2007-02-12 03:53:33 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-12 12:48:35 -0500
commit2442222283918c2d1c20ae651d95fe168757938b (patch)
treef4e120320c5b9538b4626e576fce67db201c4cc7 /include
parentad06e4bd62351bc569cca0f25d68c58dbd298146 (diff)
[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')
-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)
292 292
293struct svc_deferred_req { 293struct svc_deferred_req {
294 u32 prot; /* protocol (UDP or TCP) */ 294 u32 prot; /* protocol (UDP or TCP) */
295 struct sockaddr_in addr; 295 struct svc_sock *svsk;
296 struct svc_sock *svsk; /* where reply must go */ 296 struct sockaddr_storage addr; /* where reply must go */
297 size_t addrlen;
297 __be32 daddr; /* where reply must come from */ 298 __be32 daddr; /* where reply must come from */
298 struct cache_deferred_req handle; 299 struct cache_deferred_req handle;
299 int argslen; 300 int argslen;