Front page | perl.perl5.porters |
Postings from June 2010
[perl #75740] IPv6 support missing in perl5.10, perl5.12
Thread Next
From:
sullr @ cpan . org
Date:
June 14, 2010 17:00
Subject:
[perl #75740] IPv6 support missing in perl5.10, perl5.12
Message ID:
rt-3.6.HEAD-4976-1276533562-1007.75740-75-0@perl.org
# New Ticket Created by sullr@cpan.org
# Please include the string: [perl #75740]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=75740 >
This is a bug report for perl from sullr@cpan.org,
generated with the help of perlbug 1.39 running under perl 5.10.1.
-----------------------------------------------------------------
[Please describe your issue here]
Hi,
It's 2010, everybody talks about IPv6 but current perl CORE is missing
any useful support for it.
I've talked to this last year at the german perl workshop and touched
the topic this year again because the situation did not change.
Marc Overmeer recommended that I file a bug about it.
This is not only a bug report.
It contains suggestions how the problem can be solved and I don't think
it is too much hassle.
What's there:
- Socket exports AF_INET6
What's missing in the CORE:
- getaddrinfo (gethostbyname gives only IPv4)
- inet_pton, inet_ntop (similar to inet_aton, inet_ntoa but also for
IPv6)
- support for IPv6 in Net::* Modules (Net::SMTP, Net::FTP.. are bound to
use IO::Socket::INET which does not do IPv6)
- comfortable use of sockets similar to IO::Socket::INET6
What help could CPAN provide:
- Socket6 - which provides getaddrinfo, inet_ntop, inet_pton..
- IO::Socket::INET6 which is similar to IO::Socket::INET but supports
also IPv6
- Net::INET6Glue, which is a hack to provide IPv6 functionality in the
Net::* Modules, LWP...
So what could be done?
I think it's not that hard:
- integrate Socket6 and IO::Socket::INET6 into CORE, complementing
Socket and IO::Socket::INET
- integrate IPv6 in the Net::* CORE modules, thus making a lot of
Net::INET6Glue obsolete. This is not hard, it's mostly using
IO::Socket::INET6 instead of IO::Socket::INET if available. I did this
with IO::Socket::SSL already, which is automatically IPv6 aware if
IO::Socket::INET6 is available.
The added functionality needed for Net::FTP can be used from
Net::INET6Glue::FTP.
Who can do it?
- I could definitly help with the Net::* Modules because I have already
most of the code from writing Net::INET6Glue
- From my experience the maintainer of IO::Socket::INET6 seems to be a
nice and responsive guy so he might help to move the module to CORE.
It has no dependencies on non CORE except Socket6.
- I don't know about the Socket6 maintainer, but the module is stable
for years and has not dependencies to non CORE modules.
When can it be done?
As soon as possible. I think it's not hard to fix.
Regards,
Steffen
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=library
severity=wishlist
---
Site configuration information for perl 5.10.1:
Configured by Debian Project at Fri Apr 23 07:59:14 UTC 2010.
Summary of my perl5 (revision 5 version 10 subversion 1) configuration:
Platform:
osname=linux, osvers=2.6.24-27-server, archname=i486-linux-gnu-thread-multi
uname='linux vernadsky 2.6.24-27-server #1 smp fri mar 12 01:45:06 utc 2010 i686 gnulinux '
config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN -Dcccdlflags=-fPIC -Darchname=i486-linux-gnu -Dprefix=/usr -Dprivlib=/usr/share/perl/5.10 -Darchlib=/usr/lib/perl/5.10 -Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.10.1 -Dsitearch=/usr/local/lib/perl/5.10.1 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/man3 -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Ud_ualarm -Uusesfio -Uusenm -DDEBUGGING=-g -Doptimize=-O2 -Duseshrplib -Dlibperl=libperl.so.5.10.1 -Dd_dosuid -des'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2 -g',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.4.3', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /usr/lib64
libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt
perllibs=-ldl -lm -lpthread -lc -lcrypt
libc=/lib/libc-2.11.1.so, so=so, useshrplib=true, libperl=libperl.so.5.10.1
gnulibc_version='2.11.1'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -g -L/usr/local/lib -fstack-protector'
Locally applied patches:
---
@INC for perl 5.10.1:
/etc/perl
/usr/local/lib/perl/5.10.1
/usr/local/share/perl/5.10.1
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.10
/usr/share/perl/5.10
/usr/local/lib/site_perl
.
---
Environment for perl 5.10.1:
HOME=/home/steffen
LANG=en_US.UTF-8
LANGUAGE=
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/home/steffen/genua/bin:/home/steffen/bin:/Users/Shared/Software/perl-5.8.7/bin:/Users/Shared/Software/sqlite3/bin:/usr/lib/postgresql/8.3/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
PERL_BADLANG (unset)
SHELL=/bin/bash
Thread Next
-
[perl #75740] IPv6 support missing in perl5.10, perl5.12
by sullr @ cpan . org