diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-05-03 19:41:41 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-05-08 12:57:03 +0200 |
commit | 879498b3622102630a5ade8d7d5421720f6fd7c6 (patch) | |
tree | ddd6435c0429d906271b78c2a8af3c7eb0d1bb30 /source4/lib | |
parent | 5a8b6ac4c0ea88bdab12349830985560c69cbf8c (diff) | |
download | samba-879498b3622102630a5ade8d7d5421720f6fd7c6.tar.gz samba-879498b3622102630a5ade8d7d5421720f6fd7c6.tar.bz2 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
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/socket/interface.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |