Do we need the duplication as net.IP and IPNet supports both IPv6 and IPv4