Skip Menu |

This queue is for tickets about the Socket6 CPAN distribution.

Report information
The Basics
Id: 54629
Status: new
Priority: 0/
Queue: Socket6

People
Owner: Nobody in particular
Requestors: david+bugs [...] madore.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: setsockopt SOL_IPV6-level constants (IPV6_*) missing from Socket6
Date: Mon, 15 Feb 2010 17:31:59 +0100
To: bug-Socket6 [...] rt.cpan.org
From: David Madore <david+bugs [...] madore.org>
The SOL_IPV6(=IPPROTO_IPV6)-level constants for setsockopt which are documented in ipv6(7) under Linux, many of which are common to other operating systems, are not defined by the Socket6 module, as they probably should. Of particular importance is IPV6_V6ONLY (common to many unices), which is indispensable for reliably binding an IPv6 socket to ip6addr_any (without setting the value of the IPV6_V6ONLY option, it is impossible to know whether the socket will bind to the IPv4 domain as well: under Linux, this depends on the net.ipv6.bindv6only sysctl which is unpredictable). The attached patch fixes the problem by adding the constants in question to those defined by Socket6. -- David A. Madore ( http://www.madore.org/~david/ )

Message body is not shown because sender requested not to inline it.