mount.cifs: allow mounts to ipv6 capable servers
authorJeff Layton <jlayton@redhat.com>
Fri, 12 Dec 2008 12:08:30 +0000 (07:08 -0500)
committerJeff Layton <jlayton@redhat.com>
Fri, 12 Dec 2008 12:08:30 +0000 (07:08 -0500)
commit9af716f5fb144a047f1fc9fe02f24bcc59a0bc97
tree3d89d0184f90209db7269745e320f03b3df4e8c2
parentfda3f00246c3ecb664d2bf387ecd0e28dec16e34
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