[PATCH] mount.cifs: allow mounts to ipv6 capable servers (try #2)

Jeremy Allison jra at samba.org
Sat Dec 13 17:49:43 GMT 2008


On Fri, Dec 12, 2008 at 07:14:24AM -0500, Jeff Layton wrote:
> On Mon, 10 Nov 2008 12:45:35 -0500
> Jeff Layton <jlayton at redhat.com> wrote:
> 
> > 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.
> > 
> > This is the second attempt at this patch. The first one had a possible
> > NULL pointer dereference that could occur if the user specified the
> > address.
> > 
> > Signed-off-by: Jeff Layton <jlayton at redhat.com>
> > ---
> >  source3/client/mount.cifs.c |  223 +++++++++++++++++++++++-------------------
> >  1 files changed, 122 insertions(+), 101 deletions(-)
> > 
> 
> I've gone ahead and pushed a slight variant of this to master,
> v3-3-test and v3-2-test. I left it out of v3-0-test since it's a pretty
> big change and the later branches have diverged quite a bit from it.

That's correct, 3.0.x doesn't support IPv6 at all.

Jeremy.


More information about the samba-technical mailing list