const net.IPv4len
27 uses
net (current package)
interface_linux.go#L67: case IPv4len:
interface_linux.go#L180: return &IPNet{IP: IPv4(a.Value[0], a.Value[1], a.Value[2], a.Value[3]), Mask: CIDRMask(int(ifam.Prefixlen), 8*IPv4len)}
interface_linux.go#L209: b := make([]byte, IPv4len)
ip.go#L24: IPv4len = 4
ip.go#L68: p := make(IPMask, IPv4len)
ip.go#L80: if bits != 8*IPv4len && bits != 8*IPv6len {
ip.go#L193: return (len(ip) == IPv4len || len(ip) == IPv6len) &&
ip.go#L214: if len(ip) == IPv4len {
ip.go#L229: if len(ip) == IPv4len {
ip.go#L273: if len(mask) == IPv6len && len(ip) == IPv4len && allFF(mask[:12]) {
ip.go#L276: if len(mask) == IPv4len && len(ip) == IPv6len && bytealg.Equal(ip[:12], v4InV6Prefix) {
ip.go#L301: if len(ip) != IPv4len && len(ip) != IPv6len {
ip.go#L307: case IPv4len:
ip.go#L339: if p4 := ip.To4(); len(p4) == IPv4len {
ip.go#L353: if len(ip) != IPv4len && len(ip) != IPv6len {
ip.go#L395: if len(ip) == IPv4len && len(x) == IPv6len {
ip.go#L398: if len(ip) == IPv6len && len(x) == IPv4len {
ip.go#L465: case IPv4len:
ip.go#L466: if len(ip) != IPv4len {
ip.go#L470: if len(ip) == IPv4len {
iprawsock_posix.go#L25: if a == nil || len(a.IP) <= IPv4len {
tcpsock_posix.go#L27: if a == nil || len(a.IP) <= IPv4len {
udpsock_posix.go#L26: if a == nil || len(a.IP) <= IPv4len {
net/http
socks_bundle.go#L131: l += net.IPv4len
socks_bundle.go#L132: a.IP = make(net.IP, net.IPv4len)
crypto/x509
parser.go#L406: case net.IPv4len, net.IPv6len:
verify.go#L693: if l := len(ip); l != net.IPv4len && l != net.IPv6len {