[erlang-questions] Broken ipv6 behavior?

Matthew Dempsky <>
Wed Apr 16 20:50:07 CEST 2008


On Wed, Apr 9, 2008 at 1:00 PM, Mikael Magnusson <> wrote:
>  It looks beautiful on Debian Lenny/Sid GNU/Linux, which contains my IPv6
>  patch:

I applied the patch attached to
http://www.erlang.org/pipermail/erlang-questions/2006-November/024099.html
(needed to change www2 to www in the URL), but it doesn't work for me
on OS X.

OS X has getipnodebyname so the previous #ifdef runs first, but it
returns the wrong results (e.g., not finding ipv6.google.com and
returning an IPv4-mapped address instead of a native IPv6 address for
www.kame.net).  If I move the gethostbyname2 block first, then it
works fine for me.



More information about the erlang-questions mailing list