mount.cifs: allow mounts to ipv6 capable servers
commit9069c849074bc13dda505d461be97dd6357637aa
authorJeff Layton <jlayton@redhat.com>
Fri, 12 Dec 2008 12:00:38 +0000 (12 07:00 -0500)
committerJeff Layton <jlayton@redhat.com>
Fri, 12 Dec 2008 12:00:38 +0000 (12 07:00 -0500)
tree994ba1dc7feb6750423428b845aad736be7bbe88
parentd1101dba79d65b0991668069b91946198f343ead
mount.cifs: allow mounts to ipv6 capable servers

The current name resolution scheme in mount.cifs is IPv4 only. Expand
it to be protocol-independent. Also take advantage of the fact that
getaddrinfo() returns a list of addresses and have mount.cifs try each
in turn until it hits one that's reachable and allows the socket to
connect.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
source3/client/mount.cifs.c