diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2007-12-10 14:58:44 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-01-30 02:05:55 -0500 |
commit | ff052645c939b2fd8d467105adf98fa621cc244b (patch) | |
tree | 8f7a3030c8d052952dc08ade77da67395143cd8b /fs/nfs/callback.c | |
parent | c1d35866566bc2b270a82445271fcce1e391c4b9 (diff) |
NFS: Change nfs_find_client() to take "struct sockaddr *"
Adjust arguments and callers of nfs_find_client() to pass a
"struct sockaddr *" instead of "struct sockaddr_in *" to support non-IPv4
addresses.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Cc: Aurelien Charbon <aurelien.charbon@ext.bull.net>
Trond: Also fix up protocol version number argument in nfs_find_client() to
use the correct u32 type.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/callback.c')
-rw-r--r-- | fs/nfs/callback.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/callback.c b/fs/nfs/callback.c index bbf67f148ff9..9b6bbf1b9787 100644 --- a/fs/nfs/callback.c +++ b/fs/nfs/callback.c | |||
@@ -164,12 +164,11 @@ void nfs_callback_down(void) | |||
164 | 164 | ||
165 | static int nfs_callback_authenticate(struct svc_rqst *rqstp) | 165 | static int nfs_callback_authenticate(struct svc_rqst *rqstp) |
166 | { | 166 | { |
167 | struct sockaddr_in *addr = svc_addr_in(rqstp); | ||
168 | struct nfs_client *clp; | 167 | struct nfs_client *clp; |
169 | char buf[RPC_MAX_ADDRBUFLEN]; | 168 | char buf[RPC_MAX_ADDRBUFLEN]; |
170 | 169 | ||
171 | /* Don't talk to strangers */ | 170 | /* Don't talk to strangers */ |
172 | clp = nfs_find_client(addr, 4); | 171 | clp = nfs_find_client(svc_addr(rqstp), 4); |
173 | if (clp == NULL) | 172 | if (clp == NULL) |
174 | return SVC_DROP; | 173 | return SVC_DROP; |
175 | 174 | ||