net.IPNet.Mask (field)
20 uses
net (current package)
addrselect.go#L287: isize, _ := s[i].Prefix.Mask.Size()
addrselect.go#L288: jsize, _ := s[j].Prefix.Mask.Size()
interface_bsd.go#L113: ifat = append(ifat, &IPNet{IP: ip, Mask: mask})
ip.go#L43: Mask IPMask // network mask
ip.go#L482: m = n.Mask
ip.go#L729: return ip, &IPNet{IP: ip.Mask(m), Mask: m}, nil
crypto/x509
verify.go#L467: if mask := constraint.Mask[i]; ip[i]&mask != constraint.IP[i]&mask {
x509.go#L1225: ips = append(ips, &net.IPNet{IP: net.IP(ip), Mask: net.IPMask(mask)})
x509.go#L1792: maskedIP := ipNet.IP.Mask(ipNet.Mask)
x509.go#L1793: ipAndMask := make([]byte, 0, len(maskedIP)+len(ipNet.Mask))
x509.go#L1795: ipAndMask = append(ipAndMask, ipNet.Mask...)
github.com/jackc/pgtype
inet.go#L45: *dst = Inet{IPNet: &net.IPNet{Mask: mask, IP: value}, Status: Present}
inet.go#L99: Mask: make(net.IPMask, len(src.IPNet.Mask)),
inet.go#L102: copy(v.Mask, src.IPNet.Mask)
inet.go#L105: if oneCount, bitCount := src.IPNet.Mask.Size(); oneCount != bitCount {
inet.go#L140: ipnet = &net.IPNet{Mask: mask, IP: ip}
inet.go#L170: ipnet.Mask = net.CIDRMask(int(bits), int(addressLength)*8)
inet.go#L209: ones, _ := src.IPNet.Mask.Size()
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |