summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-05-03 19:41:41 +1000
committerAndrew Tridgell <tridge@samba.org>2011-05-08 12:57:03 +0200
commit879498b3622102630a5ade8d7d5421720f6fd7c6 (patch)
treeddd6435c0429d906271b78c2a8af3c7eb0d1bb30
parent5a8b6ac4c0ea88bdab12349830985560c69cbf8c (diff)
downloadsamba-879498b3622102630a5ade8d7d5421720f6fd7c6.tar.gz
samba-879498b3622102630a5ade8d7d5421720f6fd7c6.tar.xz
samba-879498b3622102630a5ade8d7d5421720f6fd7c6.zip
s4-lib/socket Samba4 is not IPv6 compatible
Don't add IPv6 interfaces until we actually support them. I'll soon have IPv6 service at home, and then I'll make it my buisness to sort this out once and for all. Andrew Bartlett
-rw-r--r--source4/lib/socket/interface.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/lib/socket/interface.c b/source4/lib/socket/interface.c
index abeca8ba1e4..69b7ec1d493 100644
--- a/source4/lib/socket/interface.c
+++ b/source4/lib/socket/interface.c
@@ -91,6 +91,11 @@ static void add_interface(TALLOC_CTX *mem_ctx, const struct iface_struct *ifs, s
return;
}
+ if (ifs->ip.ss_family != AF_INET) {
+ DEBUG(5, ("not adding IPv6 interface %s\n", ifs->name));
+ return;
+ }
+
iface = talloc(*interfaces == NULL ? mem_ctx : *interfaces, struct interface);
if (iface == NULL)
return;