net.IPNet.Mask (field)
10 uses
net (current package)
interface_linux.go#L195: 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#L197: ifa := &IPNet{IP: make(IP, IPv6len), Mask: CIDRMask(int(ifam.Prefixlen), 8*IPv6len)}
ip.go#L48: Mask IPMask // network mask
ip.go#L432: m = n.Mask
ip.go#L536: return IP(addr16[:]), &IPNet{IP: IP(addr16[:]).Mask(m), Mask: m}, nil
crypto/x509
parser.go#L596: ips = append(ips, &net.IPNet{IP: net.IP(ip), Mask: net.IPMask(mask)})
verify.go#L454: if mask := constraint.Mask[i]; ip[i]&mask != constraint.IP[i]&mask {
x509.go#L1220: maskedIP := ipNet.IP.Mask(ipNet.Mask)
x509.go#L1221: ipAndMask := make([]byte, 0, len(maskedIP)+len(ipNet.Mask))
x509.go#L1223: ipAndMask = append(ipAndMask, ipNet.Mask...)
 |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |