diff options
author | Christian Pointner <equinox@anytun.org> | 2009-02-26 15:27:03 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-02-26 15:27:03 +0000 |
commit | 697544d408973bb30ee3af42d8997af87ef45a11 (patch) | |
tree | 66a5f9b25d210cee4a376755e6d4535d1aa9b592 | |
parent | fixed address length for openbsd (diff) |
removed not working setsockopt V6ONLY
-rw-r--r-- | src/udp.c | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -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; |