Skip Menu |

This queue is for tickets about the IO-Socket-INET6 CPAN distribution.

Report information
The Basics
Id: 79168
Status: new
Priority: 0/
Queue: IO-Socket-INET6

Owner: Nobody in particular
Requestors: carnil [...]

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

From: CARNIL [...]
Subject: libio-socket-inet6-perl: IO::Socket::INET6 needs /etc/protocols (netbase)
Download (untitled) / with headers
text/plain 1.6k
Hi This bug has been forwarded from Package: libio-socket-inet6-perl Version: 2.65-1.1 Severity: normal This is similar to #185244[1] but for libio-socket-inet6-perl. The 'resolving' via number does not work here despite the manpage says so. ----cut---------cut---------cut---------cut---------cut---------cut----- Proto Protocol name (or number) "tcp" | "udp" | ... ----cut---------cut---------cut---------cut---------cut---------cut----- The following works for IO::Socket::INET if /etc/protocols is not present on the system (see bugreport #185244): perl -MIO::Socket::INET -e '$sock = IO::Socket::INET->new(LocalAddr => "", LocalPort => 80, Proto => 6);' works and stracing shows that /etc/protocols is not open. Even Proto => "tcp" will work here because of the resolution in [1]. Now trying the same for IO::Socket::INET6: perl -MIO::Socket::INET6 -e '$sock = IO::Socket::INET6->new(LocalAddr => "", LocalPort => 80, Proto => 6);' gives Use of uninitialized value in hash element at /usr/share/perl5/IO/Socket/ line 171. Use of uninitialized value in subroutine entry at /usr/share/perl5/IO/Socket/ line 185. and running under strace shows open("/etc/protocols", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) [1]: So we need either a Depends on netbase here or a similar implementation (upstream) as for IO::Socket::INET6 where the protocol numbers for tcp, udp and icmp are 'hardcoded', such that reading from /etc/protocols is not needed? Regards, Salvatore Thanks in advance, Salvatore Bonaccorso, Debian Perl Group
Subject: Re: [ #79168] AutoReply: libio-socket-inet6-perl: IO::Socket::INET6 needs /etc/protocols (netbase)
Date: Thu, 23 Aug 2012 19:58:08 +0200
To: Bugs in IO-Socket-INET6 via RT <bug-IO-Socket-INET6 [...]>
From: Salvatore Bonaccorso <carnil [...]>
Download (untitled) / with headers
text/plain 372b
Hi I think I need to specify. Depending in Debian to netbase would be the solution to have always /etc/protocols present. But this is more the request to have it behaving similar to IO::Socket::INET. If protocol names cannot be resolved, and Proto is given as integer, resolve it 'hardcoded' for tcp, udp and icmp. See referenced Bugreport in Debian. Regards, Salvatore
Download signature.asc
application/pgp-signature 836b

Message body not shown because it is not plain text.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to