]> git.decadent.org.uk Git - nfs-utils.git/commit
mount command: AF_INET6 support for probe_bothports()
authorChuck Lever <chuck.lever@oracle.com>
Thu, 11 Dec 2008 15:30:20 +0000 (10:30 -0500)
committerSteve Dickson <steved@redhat.com>
Thu, 11 Dec 2008 15:30:20 +0000 (10:30 -0500)
commit8a5ef964599438ea45f849a0cd1431a0c26bf054
tree0564322876cad38537febe0a2331f835c38b6b0b
parent299a990de1b16ff769201fa0ed38249853254497
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>
utils/mount/network.c
utils/mount/network.h