reduce redundancy in host/IPv6 parsing