Project

General

Profile

Actions

Bug #2305

closed

uClibc-0.9.28 network.c IPV6_V6ONLY - patch provided

Added by abelbeck about 14 years ago. Updated about 14 years ago.

Status:
Invalid
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:

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

lighttpd-uclibc-ipv6.patch (402 Bytes) lighttpd-uclibc-ipv6.patch abelbeck, 2011-03-23 20:04
Actions #1

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.

Actions

Also available in: Atom