aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/lockd/lockd.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2008-10-03 12:50:21 -0400
committerJ. Bruce Fields <bfields@citi.umich.edu>2008-10-03 17:02:34 -0400
commitd7d204403b31beb83b1aefef7bd76f5209369555 (patch)
tree70d63b581d4987fb12cc455f741bf21a55a7a8c3 /include/linux/lockd/lockd.h
parent88541c848746442ddff45dea05ddea6b734d88b5 (diff)
lockd: Adjust nlmclnt_lookup_host() signature to accomodate non-AF_INET
Pass a struct sockaddr * and a length to nlmclnt_lookup_host() to accomodate non-AF_INET family addresses. As a side benefit, eliminate the hostname_len argument, as the hostname is always NUL-terminated. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'include/linux/lockd/lockd.h')
-rw-r--r--include/linux/lockd/lockd.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/lockd/lockd.h b/include/linux/lockd/lockd.h
index 973ab1d6e862..90a996d2f005 100644
--- a/include/linux/lockd/lockd.h
+++ b/include/linux/lockd/lockd.h
@@ -215,10 +215,11 @@ void nlmclnt_next_cookie(struct nlm_cookie *);
215/* 215/*
216 * Host cache 216 * Host cache
217 */ 217 */
218struct nlm_host *nlmclnt_lookup_host(const struct sockaddr_in *sin, 218struct nlm_host *nlmclnt_lookup_host(const struct sockaddr *sap,
219 int proto, u32 version, 219 const size_t salen,
220 const char *hostname, 220 const unsigned short protocol,
221 unsigned int hostname_len); 221 const u32 version,
222 const char *hostname);
222struct nlm_host *nlmsvc_lookup_host(struct svc_rqst *, const char *, 223struct nlm_host *nlmsvc_lookup_host(struct svc_rqst *, const char *,
223 unsigned int); 224 unsigned int);
224struct rpc_clnt * nlm_bind_host(struct nlm_host *); 225struct rpc_clnt * nlm_bind_host(struct nlm_host *);