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
(parent:
15b509b
)
lib/replace: make sure IPV6_V6ONLY is available for IPv6 support
author
Stefan Metzmacher
<metze@samba.org>
Sat, 24 Apr 2010 11:07:50 +0000
(13:07 +0200)
committer
Karolin Seeger
<kseeger@samba.org>
Tue, 11 May 2010 12:53:10 +0000
(14:53 +0200)
We rely on IPV6_V6ONLY being supported. See bug #7196.
metze
(cherry picked from commit
41cd6f992829c45c890f5daf78eb3019633f3620
)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
lib/replace/libreplace_network.m4
patch
|
blob
|
history
diff --git
a/lib/replace/libreplace_network.m4
b/lib/replace/libreplace_network.m4
index 6554a59d386f428d9ae815d6ae9e09bc43e8d93d..d8ed8a1d53678db873ae4221bbcd5061c6ad4c32 100644
(file)
--- a/
lib/replace/libreplace_network.m4
+++ b/
lib/replace/libreplace_network.m4
@@
-414,6
+414,14
@@
if (ret != 0) {
const char *es = gai_strerror(ret);
}
freeaddrinfo(ai);
+{
+ int val = 1;
+ #ifdef HAVE_LINUX_IPV6_V6ONLY_26
+ #define IPV6_V6ONLY 26
+ #endif
+ ret = setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY,
+ (const void *)&val, sizeof(val));
+}
],[
libreplace_cv_HAVE_IPV6=yes
],[