summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-02-26 15:27:03 +0000
committerChristian Pointner <equinox@anytun.org>2009-02-26 15:27:03 +0000
commit697544d408973bb30ee3af42d8997af87ef45a11 (patch)
tree66a5f9b25d210cee4a376755e6d4535d1aa9b592
parentfixed address length for openbsd (diff)
removed not working setsockopt V6ONLY
-rw-r--r--src/udp.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/udp.c b/src/udp.c
index 11d412d..753e8ac 100644
--- a/src/udp.c
+++ b/src/udp.c
@@ -102,14 +102,15 @@ int udp_init(udp_socket_t* sock, const char* local_addr, const char* port, resol
return -1;
}
-#ifdef NO_V4MAPPED
- if(res->ai_family == AF_INET6) {
- log_printf(NOTICE, "disabling V4-Mapped addresses");
- int on = 1;
- if(setsockopt(sock->fd_, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof(on)))
- log_printf(ERROR, "Error on setting IPV6_V6ONLY socket option: %s", strerror(errno));
- }
-#endif
+/* this doesn't work on linux ?? */
+/* #ifdef NO_V4MAPPED */
+/* if(res->ai_family == AF_INET6) { */
+/* log_printf(NOTICE, "disabling V4-Mapped addresses"); */
+/* int on = 1; */
+/* if(setsockopt(sock->fd_, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof(on))) */
+/* log_printf(ERROR, "Error on setting IPV6_V6ONLY socket option: %s", strerror(errno)); */
+/* } */
+/* #endif */
freeaddrinfo(res);
return 0;