general ipv6 infra with optional net_bits and Yaroslav's special