summaryrefslogtreecommitdiffstats
path: root/utils/mount/network.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2008-07-15 12:02:42 -0400
committerSteve Dickson <steved@redhat.com>2008-07-15 12:02:42 -0400
commit4f101548ef4990979400b7095e199c30204b100a (patch)
treeb33a1204445130cf634411ab3d4cd0b7c1a0d4ef /utils/mount/network.h
parent52fe32278aee9f359d4ef6d1fab7be405ca0b193 (diff)
downloadnfs-utils-4f101548ef4990979400b7095e199c30204b100a.tar.gz
nfs-utils-4f101548ef4990979400b7095e199c30204b100a.tar.xz
nfs-utils-4f101548ef4990979400b7095e199c30204b100a.zip
Introduce a new DNS resolver function in utils/mount/network.c that uses
getaddrinfo(3), which supports AF_INET6, to resolve host names. Replace the guts of nfs_gethostbyname() with a call to the new function. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/mount/network.h')
-rw-r--r--utils/mount/network.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/mount/network.h b/utils/mount/network.h
index 99ecc1e..70a91af 100644
--- a/utils/mount/network.h
+++ b/utils/mount/network.h
@@ -48,6 +48,8 @@ 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 nfs_name_to_address(const char *, const sa_family_t,
+ struct sockaddr *, socklen_t *);
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,