pix has asked for the wisdom of the Perl Monks concerning the following question:

Hi guys,
I want to add IPv6 support to some tools I've written, anyone knows if Perl supports this, and if it is possible to use IPv6 addresses with Net:: modules?
thanks,
Federico

Replies are listed 'Best First'.
Re: IPv6 support
by mitd (Curate) on Aug 30, 2001 at 01:53 UTC

    Simple answer is no not yet. There is no support for PF_INET6/AF_NET6 in Socket.pm but if your OS environment supports it (ie mine does Linux 2.4.x) it would be possible to write your own support modules. I took a quick look around to see if there were any indications when AF/PF_INET6 support would be availble in Socket.pm with no luck

    mitd-Made in the Dark
    'My favourite colour appears to be grey.'

      According to the digest of last weeks p5p mailing list...

      Jeff Okamoto, a rather excellent HP hacker, announced that unfortunately he's had to stop working on Perl's IPv6 support because he's been laid off and needs a new job.

      Error: Keyboard not attached. Press F1 to continue.
Add IPv6 support for Net::IRC
by flocto (Pilgrim) on Aug 30, 2001 at 14:04 UTC
    Well, I just wrote the IPv6 support for Net::IRC yesterday since I noticed that it couldn't handle privmsgs from IPv6 users. I don't know if it will work if you use IPv6 yourself, but it's a beginning. I didn't send it to the developers yet but I propably will. Anyways, here it is:
    #remove this code from /usr/lib/perl5/site_perl/5.005/Net/IRC/Connecti +on.pm: # this is line 1103 in version 1.3 (1999/08/12) # --SNIPP-- # REPLACE THIS: # $line = substr $line, 1 if $line =~ /^:/; # ($from, $line) = split ":", $line, 2; # ($from, $type, @stuff) = split /\s+/, $from; # WITH: ($from, $type, $line) = $line =~ /^:?(\S+)\s+(\S+).+?:(.+)$/; # --SNAPP--

    Hope it helps :) It looks way too simple but it works just fine..
    Regards
Re: IPv6 support
by AidanLee (Chaplain) on Aug 30, 2001 at 01:23 UTC
    While I don't have your answer, the Net:: suite is mainstream enough that there is probably a mailing list for it somewhere. If not (check first!), the author(s) of the modules in question ought to be able to answer your question.