replace sg_ip6_getsubnet() with constructIPRange()