summaryrefslogtreecommitdiffstats
path: root/utils/mount/network.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2008-12-11 10:30:20 -0500
committerSteve Dickson <steved@redhat.com>2008-12-11 10:30:20 -0500
commit8a5ef964599438ea45f849a0cd1431a0c26bf054 (patch)
tree0564322876cad38537febe0a2331f835c38b6b0b /utils/mount/network.h
parent299a990de1b16ff769201fa0ed38249853254497 (diff)
downloadnfs-utils-8a5ef964599438ea45f849a0cd1431a0c26bf054.tar.gz
nfs-utils-8a5ef964599438ea45f849a0cd1431a0c26bf054.tar.xz
nfs-utils-8a5ef964599438ea45f849a0cd1431a0c26bf054.zip
mount command: AF_INET6 support for probe_bothports()
Introduce an AF_INET6 capable probe_bothports() API. This means replacing "struct sockaddr_in *" arguments with a "struct sockaddr *" and a socklen_t arguments. These functions often combine a "struct sockaddr_in" and a "struct pmap" into a single "clnt_addr_t" argument. Instead of modifying "clnt_addr_t" and all the legacy code that uses it, I'm going to create a new probe_bothports() API for the text-based mount command that takes a "struct sockaddr *" and sockaddr length, and leave the existing probe_bothports() interface, which takes "clnt_addr_t" arguments, for legacy use. 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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/mount/network.h b/utils/mount/network.h
index a4dba1b..075093d 100644
--- a/utils/mount/network.h
+++ b/utils/mount/network.h
@@ -40,6 +40,9 @@ static const struct timeval TIMEOUT = { 20, 0 };
static const struct timeval RETRY_TIMEOUT = { 3, 0 };
int probe_bothports(clnt_addr_t *, clnt_addr_t *);
+int nfs_probe_bothports(const struct sockaddr *, const socklen_t,
+ struct pmap *, const struct sockaddr *,
+ const socklen_t, struct pmap *);
int nfs_gethostbyname(const char *, struct sockaddr_in *);
int nfs_name_to_address(const char *, const sa_family_t,
struct sockaddr *, socklen_t *);