mount.cifs: allow mounts to ipv6 capable servers
commit4f19e0850bb457b41ea2953ca0d4e9aeaf3bc09a
authorJeff Layton <jlayton@redhat.com>
Fri, 12 Dec 2008 12:06:07 +0000 (12 07:06 -0500)
committerJeff Layton <jlayton@redhat.com>
Fri, 12 Dec 2008 12:06:07 +0000 (12 07:06 -0500)
treeb6e6f8f835cb571a15b00e3e0687db260abd432c
parenta42b38b34d4e97d2c196e67aef3b01d4f043b646
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>
source/client/mount.cifs.c