add helper methods to test if ip/ipv6 addresses are in a network