mount.cifs: allow mounts to ipv6 capable servers
commit56dcdf4575b86cf5055cdb1e6f875c491fd704d7
authorJeff Layton <jlayton@redhat.com>
Fri, 12 Dec 2008 12:06:07 +0000 (12 07:06 -0500)
committerKarolin Seeger <kseeger@samba.org>
Fri, 12 Dec 2008 13:48:50 +0000 (12 14:48 +0100)
tree4fce81a0fe156f0fbcabee6a53e7f9223759611b
parent4b6986d5f0d9af172a48ae148a95f2c61d64cc9f
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>
(cherry picked from commit 4f19e0850bb457b41ea2953ca0d4e9aeaf3bc09a)
source/client/mount.cifs.c