add ipv6 support (2.6_22)