diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-04-24 13:07:50 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-04-24 20:30:23 +0200 |
commit | 41cd6f992829c45c890f5daf78eb3019633f3620 (patch) | |
tree | ab7339087d96a1592066bfaf3944fa585f8d3e2b /lib/replace | |
parent | db29b2d6d2dfdebb91292b0640642c545fbce025 (diff) | |
download | samba-41cd6f992829c45c890f5daf78eb3019633f3620.tar.gz samba-41cd6f992829c45c890f5daf78eb3019633f3620.tar.bz2 samba-41cd6f992829c45c890f5daf78eb3019633f3620.zip |
lib/replace: make sure IPV6_V6ONLY is available for IPv6 support
We really on IPV6_V6ONLY being supported.
metze
Diffstat (limited to 'lib/replace')
-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 830dc18dfc..cff7034a0f 100644 --- 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 ],[ |