git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5a8b6ac
)
s4-lib/socket Samba4 is not IPv6 compatible
author
Andrew Bartlett
<abartlet@samba.org>
Tue, 3 May 2011 09:41:41 +0000
(19:41 +1000)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/source4/lib/socket/interface.c
b/source4/lib/socket/interface.c
index abeca8ba1e4187487d7919bfacf7d4d8215969c3..69b7ec1d4930295f3afcaf2eaa23d46558edd146 100644
(file)
--- 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;