Bug #2305
closeduClibc-0.9.28 network.c IPV6_V6ONLY - patch provided
Description
With IPv6 enabled at compile time, using uClibc-0.9.28, I get:
--
network.c: In function `network_server_init':
network.c:246: error: `IPV6_V6ONLY' undeclared (first use in this function)
network.c:246: error: (Each undeclared identifier is reported only once
network.c:246: error: for each function it appears in.)
--
I was able to fix the issue with the attached patch.
The idea was borrowed from dnsmasq ( http://www.thekelleys.org.uk/dnsmasq/doc.html ) in src/config.h as uClibc-0.9.28 did not define IPV6_V6ONLY.
It works in my tests.
Files
Updated by stbuehler about 14 years ago
- Status changed from New to Invalid
http://www.opengroup.org/onlinepubs/000095399/basedefs/netinet/in.h.html
The <netinet/in.h> header shall define the following macros, with distinct integer values, for use in the option_name argument in the getsockopt() or setsockopt() functions at protocol level IPPROTO_IPV6:
[...]
IPV6_V6ONLY
: Restrict AF_INET6 socket to IPv6 communications only.
No workarounds for stupid libraries.
Also available in: Atom