kubernetes/staging/src/k8s.io/apimachinery/pkg/util/net/util.go

// IPNetEqual checks if the two input IPNets are representing the same subnet.
// For example,
//
//	10.0.0.1/24 and 10.0.0.0/24 are the same subnet.
//	10.0.0.1/24 and 10.0.0.0/25 are not the same subnet.
func IPNetEqual(ipnet1, ipnet2 *net.IPNet) bool {}

// Returns if the given err is "connection reset by peer" error.
func IsConnectionReset(err error) bool {}

// Returns if the given err is "http2: client connection lost" error.
func IsHTTP2ConnectionLost(err error) bool {}

// Returns if the given err is "connection refused" error
func IsConnectionRefused(err error) bool {}