Complete.Org: Mailing Lists: Archives: gopher: January 2009:
[gopher] Re: gopher and IPv6
Home

[gopher] Re: gopher and IPv6

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: gopher@xxxxxxxxxxxx
Subject: [gopher] Re: gopher and IPv6
From: Cameron Kaiser <spectre@xxxxxxxxxxxx>
Date: Mon, 19 Jan 2009 07:13:45 -0800 (PST)
Reply-to: gopher@xxxxxxxxxxxx

> > > I run bucktooth (0.2.6) from openbsd-inetd dual-stack. I just checked,  
> > > and ipv6 source addresses are *not* correct: It always shows 0.0.0.0.  
> > > Maybe I have some time next week to see if I can solve this.
> > 
> > That's what I figured would happen. If you submit me a patch, I'll check
> > it in as experimental for the next version.
> 
> It appears to be a little more complicated then I thought. IPv6 support
> in Perl is pretty bad[1]. I don't see a easy way to determine the
> address family of the inherited socket, let alone properly unpack it for
> the AF_INET6 case. And gethostbyaddr() is IPv4 only without an IP
> agnostic counterpart in base.

We'll have to see what happens in Perl 6. I did some looking at IPv6 for
HTTPi a couple years ago, but did not see much IPv6 support in Perl core. It's
distressing to see this has not changed.

However, there should be a way to unpack the socket manually. I'll do a little
digging myself.

-- 
------------------------------------ personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckaiser@xxxxxxxxxxxx
-- ASCII stupid question, get a stupid ANSI! ----------------------------------



[Prev in Thread] Current Thread [Next in Thread]