git.samba.org
/
kamenim
/
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:
db29b2d
)
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
Stefan Metzmacher
<metze@samba.org>
Sat, 24 Apr 2010 18:30:23 +0000
(20:30 +0200)
We really on IPV6_V6ONLY being supported.
metze
lib/replace/libreplace_network.m4
patch
|
blob
|
history
diff --git
a/lib/replace/libreplace_network.m4
b/lib/replace/libreplace_network.m4
index 830dc18dfc2aab4d3c1e4e3541526acff13484bd..cff7034a0f78593e86efd3c9d2c67c42d3a4ca02 100644
(file)
--- a/
lib/replace/libreplace_network.m4
+++ b/
lib/replace/libreplace_network.m4
@@
-439,6
+439,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
],[