summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2011-10-15 11:13:40 +0200
committerMatthieu Patou <mat@matws.net>2011-10-16 00:01:36 +0200
commit8741b90334a2b9f0143f839e8ff65101d4a70e71 (patch)
tree06a56461d09d63cbf89f4eeec7ed8c83cb364a6f /source4/lib
parenta1767f74afc0037d188a8ed578ce68a7e3cd07f3 (diff)
downloadsamba-8741b90334a2b9f0143f839e8ff65101d4a70e71.tar.gz
samba-8741b90334a2b9f0143f839e8ff65101d4a70e71.tar.bz2
samba-8741b90334a2b9f0143f839e8ff65101d4a70e71.zip
s4-interfaces: allow pure ipv6 to work
This is the complementary part of patch abe5afc580dcaaab70f136904d98fa83bfae7b6e for samba4.
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/socket/interface.c3
1 files changed, 2 insertions, 1 deletions
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;