summaryrefslogtreecommitdiffstats
path: root/utils/mount/network.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2007-08-24 13:11:38 -0400
committerNeil Brown <neilb@suse.de>2007-08-25 08:19:33 +1000
commit7be7916adf72d09170e86ffeabbf8288ff0063e6 (patch)
treee588c594055abec3d08054dde96f91c0a612bcd8 /utils/mount/network.h
parentb4c9ca0c8b132f36743e324766b8532eb623e98e (diff)
downloadnfs-utils-7be7916adf72d09170e86ffeabbf8288ff0063e6.tar.gz
nfs-utils-7be7916adf72d09170e86ffeabbf8288ff0063e6.tar.xz
nfs-utils-7be7916adf72d09170e86ffeabbf8288ff0063e6.zip
mount.nfs: Create a new API to find out client's address
Provide a version of clnt_ping() that discovers the client's address, but doesn't do an RPC ping. The in-kernel text-based mount code already does a ping, so all we need here is address discovery. As well, add a block comment in front of clnt_ping() that hopefully elucidates the differences. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'utils/mount/network.h')
-rw-r--r--utils/mount/network.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/mount/network.h b/utils/mount/network.h
index 2e4dbbc..99ecc1e 100644
--- a/utils/mount/network.h
+++ b/utils/mount/network.h
@@ -48,6 +48,7 @@ static const struct timeval RETRY_TIMEOUT = { 3, 0 };
int probe_bothports(clnt_addr_t *, clnt_addr_t *);
int nfs_gethostbyname(const char *, struct sockaddr_in *);
+int get_client_address(struct sockaddr_in *, struct sockaddr_in *);
int nfs_call_umount(clnt_addr_t *, dirpath *);
int clnt_ping(struct sockaddr_in *, const unsigned long,
const unsigned long, const unsigned int,