const net.IPv4len
31 uses
net (current package)
interface_linux.go#L67: case IPv4len:
interface_linux.go#L192: 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#L221: b := make([]byte, IPv4len)
ip.go#L22: IPv4len = 4
ip.go#L66: p := make(IPMask, IPv4len)
ip.go#L78: if bits != 8*IPv4len && bits != 8*IPv6len {
ip.go#L191: return (len(ip) == IPv4len || len(ip) == IPv6len) &&
ip.go#L212: if len(ip) == IPv4len {
ip.go#L227: if len(ip) == IPv4len {
ip.go#L271: if len(mask) == IPv6len && len(ip) == IPv4len && allFF(mask[:12]) {
ip.go#L274: if len(mask) == IPv4len && len(ip) == IPv6len && bytealg.Equal(ip[:12], v4InV6Prefix) {
ip.go#L321: if p4 := p.To4(); len(p4) == IPv4len {
ip.go#L407: if len(ip) != IPv4len && len(ip) != IPv6len {
ip.go#L436: if len(ip) == IPv4len && len(x) == IPv6len {
ip.go#L439: if len(ip) == IPv6len && len(x) == IPv4len {
ip.go#L506: case IPv4len:
ip.go#L507: if len(ip) != IPv4len {
ip.go#L511: if len(ip) == IPv4len {
ip.go#L564: var p [IPv4len]byte
ip.go#L565: for i := 0; i < IPv4len; i++ {
ip.go#L627: if ellipsis < 0 && i != IPv6len-IPv4len {
ip.go#L631: if i+IPv4len > IPv6len {
ip.go#L644: i += IPv4len
ip.go#L747: iplen := 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#L418: case net.IPv4len, net.IPv6len:
verify.go#L647: if l := len(ip); l != net.IPv4len && l != net.IPv6len {