cifs: have cifs parse scope_id out of IPv6 addresses and use it
authorJeff Layton <jlayton@redhat.com>
Thu, 11 Jun 2009 14:27:31 +0000 (10:27 -0400)
committerSteve French <sfrench@us.ibm.com>
Thu, 25 Jun 2009 01:14:36 +0000 (01:14 +0000)
commit681bf72e4893a187cf6b6b62c08fc193f81c8c2f
tree5c580474a21edf38140407bd42f28853e9354e25
parent268875b9d1dd1bf0b523c59e736da9bc20c8ce1f
cifs: have cifs parse scope_id out of IPv6 addresses and use it

This patch has CIFS look for a '%' in an IPv6 address. If one is
present then it will try to treat that value as a numeric interface
index suitable for stuffing into the sin6_scope_id field.

This should allow people to mount servers on IPv6 link-local addresses.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: David Holder <david@erion.co.uk>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/connect.c
fs/cifs/dns_resolve.c
fs/cifs/netmisc.c