[gopher] Re: gopher and IPv6
> > > 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@floodgap.com
-- ASCII stupid question, get a stupid ANSI! ----------------------------------
Reply to: