From 8741b90334a2b9f0143f839e8ff65101d4a70e71 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Sat, 15 Oct 2011 11:13:40 +0200 Subject: s4-interfaces: allow pure ipv6 to work This is the complementary part of patch abe5afc580dcaaab70f136904d98fa83bfae7b6e for samba4. --- source4/lib/socket/interface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/lib') diff --git a/source4/lib/socket/interface.c b/source4/lib/socket/interface.c index 7994716e83..27ac7151a3 100644 --- a/source4/lib/socket/interface.c +++ b/source4/lib/socket/interface.c @@ -87,7 +87,8 @@ static void add_interface(TALLOC_CTX *mem_ctx, const struct iface_struct *ifs, s return; } - if (!(ifs->flags & (IFF_BROADCAST|IFF_LOOPBACK))) { + if (ifs->ip.ss_family == AF_INET && + !(ifs->flags & (IFF_BROADCAST|IFF_LOOPBACK))) { DEBUG(3,("not adding non-broadcast interface %s\n", ifs->name )); return; -- cgit