diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-04-24 13:07:50 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2010-05-17 09:50:20 +0200 |
commit | 75c12a4c078a689c728213d02c99ee49dcfef592 (patch) | |
tree | 23b12ddc5b37ece1713885067256dee0ae7d5cb1 | |
parent | 1f0f830dce26e31232c9d2abb08ceb743e914251 (diff) | |
download | samba-75c12a4c078a689c728213d02c99ee49dcfef592.tar.gz |
lib/replace: make sure IPV6_V6ONLY is available for IPv6 support
We rely on IPV6_V6ONLY being supported. See bug #7196.
metze
(cherry picked from commit 41cd6f992829c45c890f5daf78eb3019633f3620)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit ae0ee660a5666b18ffaa43bebbe6808781a82c37)
-rw-r--r-- | lib/replace/libreplace_network.m4 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/replace/libreplace_network.m4 b/lib/replace/libreplace_network.m4 index 6554a59d386..d8ed8a1d536 100644 --- 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 ],[ |