Re: [perl #75630] IO::Socket does not provide the IPV6_V6ONLY constant
[email protected] (Nicholas Clark)
| Newsgroups | perl.perl5.porters |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Jun 10, 2010 at 09:16:55AM +0100, Paul LeoNerd Evans wrote: > On Wed, Jun 09, 2010 at 05:47:24AM -0700, [email protected] wrote: > > When opening an IPv6 socket, one wants to ensure that the IPV6_V6ONLY > > socket option is set to 1 to prevent the socket from listening on > > IPv4 too and using mapped addresses (regardless of the system default > > value in /proc/sys/net/ipv6/bindv6only). > > > > Unfortunately, IO::Socket does not provide this constant. Please add > > it. > > I'm not sure whether Socket would be the best place to store this one. > Perhaps Socket6 or IO::Socket::INET6 would be more appropriate? I'm not certain either. The counter argument is that Socket is called Socket, not Socket4, and (I think) is intended to provide general functionality, not just IPv4. Plus, I think (and I'm assuming a rough consensus here, until proven otherwise) the perl core should be shipping complete IPv6 functionality (well, as complete as it currently ships IPv4). I right in guessing that without this constant exposed *somewhere* by a module shipping in the perl core, we'd not meet that goal? Nicholas Clark