diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2006-08-22 20:06:19 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-09-22 23:24:48 -0400 |
commit | c4efcb1d3e0bc76aeb9ca6301d19a5079893c6c9 (patch) | |
tree | 23f113b897f1ab2e00e4fcf774d93711d7f703b8 /include/linux/sunrpc | |
parent | e7f7865743fff3d3938ec7540e5a784d662426da (diff) |
SUNRPC: Use "sockaddr_storage" for storing RPC client's remote peer address
IPv6 addresses are big (128 bytes). Now that no RPC client consumers treat
the addr field in rpc_xprt structs as an opaque, and access it only via the
API calls, we can safely widen the field in the rpc_xprt struct to
accomodate larger addresses.
Test plan:
Compile kernel with CONFIG_NFS enabled.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r-- | include/linux/sunrpc/xprt.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index 8372ab8fc9b5..fc05cfbd5805 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h | |||
@@ -134,7 +134,8 @@ struct rpc_xprt { | |||
134 | struct sock * inet; /* INET layer */ | 134 | struct sock * inet; /* INET layer */ |
135 | 135 | ||
136 | struct rpc_timeout timeout; /* timeout parms */ | 136 | struct rpc_timeout timeout; /* timeout parms */ |
137 | struct sockaddr_in addr; /* server address */ | 137 | struct sockaddr_storage addr; /* server address */ |
138 | size_t addrlen; /* size of server address */ | ||
138 | int prot; /* IP protocol */ | 139 | int prot; /* IP protocol */ |
139 | 140 | ||
140 | unsigned long cong; /* current congestion */ | 141 | unsigned long cong; /* current congestion */ |