general ipv6 infra with optional net_bits and Yaroslav's special

Please set explicitly net_bits here