Add ipv6 support, get compatible with Linux ifconfig output