Re: [PHP-DEV] gethostbyaddr, IPv6 mapped IPv4 and native IPv6 addresses From: Stig Venaas (venaas <email protected>)
Date: 09/19/01

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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>