s4-lib/socket Samba4 is not IPv6 compatible
authorAndrew Bartlett <abartlet@samba.org>
Tue, 3 May 2011 09:41:41 +0000 (19:41 +1000)
committerAndrew Tridgell <tridge@samba.org>
Sun, 8 May 2011 10:57:03 +0000 (12:57 +0200)
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

index abeca8ba1e4187487d7919bfacf7d4d8215969c3..69b7ec1d4930295f3afcaf2eaa23d46558edd146 100644 (file)
@@ -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;