[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-62-g2032a19

Jeff Layton jlayton at samba.org
Thu Jun 25 11:29:16 GMT 2009


The branch, master has been updated
       via  2032a1914d72e4de89280e179c782566cafc163a (commit)
      from  313a2bfa527796f6512b2589a8b567c86436cf12 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 2032a1914d72e4de89280e179c782566cafc163a
Author: Jeff Layton <jlayton at redhat.com>
Date:   Thu Jun 25 07:27:25 2009 -0400

    mount.cifs: add support for sending IPv6 scope ID to kernel
    
    When getaddrinfo returns an IPv6 address with a non-zero scope_id, send
    that to the kernel appended to the address with a '%' delimiter. This
    allows people to mount servers via their link-local IPv6 addresses
    (given a kernel that understands this address format, of course).
    
    Signed-off-by: Jeff Layton <jlayton at redhat.com>

-----------------------------------------------------------------------

Summary of changes:
 client/mount.cifs.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/client/mount.cifs.c b/client/mount.cifs.c
index 97144a0..db05665 100644
--- a/client/mount.cifs.c
+++ b/client/mount.cifs.c
@@ -1562,6 +1562,14 @@ mount_retry:
 		}
 	}
 
+	if (addr->ai_addr->sa_family == AF_INET6 && addr6->sin6_scope_id) {
+		strlcat(options, "%", options_size);
+		current_len = strnlen(options, options_size);
+		optionstail = options + current_len;
+		snprintf(optionstail, options_size - current_len, "%u",
+			 addr6->sin6_scope_id);
+	}
+
 	if (!fakemnt && mount(dev_name, mountpoint, "cifs", flags, options)) {
 		switch (errno) {
 		case ECONNREFUSED:


-- 
Samba Shared Repository


More information about the samba-cvs mailing list