From 879498b3622102630a5ade8d7d5421720f6fd7c6 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 3 May 2011 19:41:41 +1000 Subject: 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 --- source4/lib/socket/interface.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source4/lib/socket/interface.c b/source4/lib/socket/interface.c index abeca8ba1e..69b7ec1d49 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; -- cgit