Re: gethostbyaddr, IPv6 mapped IPv4 and native IPv6 addresses

From: Date: Wed, 19 Sep 2001 18:08:44 +0000
Subject: Re: gethostbyaddr, IPv6 mapped IPv4 and native IPv6 addresses
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-66231@lists.php.net to get a copy of this message
Hi On Tue, Sep 18, 2001 at 06:28:08PM +0200, Matthias Wimmer wrote: > Hi! > > I just noticed that the php function gethostbyaddr is not able to lookup > IPv6 mapped IPv4 or native IPv6 addresses. > > Because I get such addresses from the apache 1.3.19 when it is patched > with the KAME IPv6 patch (that's the normal way to IPv6 enable apache > 1.3) I noticed the problem. > > Attached is a patch that enables php to lookup such addresses too. Committed, I had to change it a bit though. It looks like your inet_pton will also accept IPv4 when called with AF_INET6, this is not the standard. Please try the latest from CVS or the next snapshot. Glad to see there are others interested in PHP and IPv6 (: Stig

« previous php.dev (#66231) next »