net.IPNet.IP (field)
19 uses
net (current package)
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#L182: ifa := &IPNet{IP: make(IP, IPv6len), Mask: CIDRMask(int(ifam.Prefixlen), 8*IPv6len)}
interface_linux.go#L183: copy(ifa.IP, a.Value[:])
ip.go#L47: IP IP // network number
ip.go#L457: if ip = n.IP.To4(); ip == nil {
ip.go#L458: ip = n.IP
ip.go#L567: return IP(addr16[:]), &IPNet{IP: IP(addr16[:]).Mask(m), Mask: m}, nil
sockopt_posix.go#L37: if v.IP.To4() != nil {
sockopt_posix.go#L38: return v.IP, nil
crypto/x509
constraints.go#L127: if !a.Contains(b.IP) {
constraints.go#L130: broadcast := make(net.IP, len(b.IP))
constraints.go#L131: for i := range b.IP {
constraints.go#L132: broadcast[i] = b.IP[i] | (^b.Mask[i])
constraints.go#L138: i := bytes.Compare(a.IP, b.IP)
constraints.go#L146: return bytes.Compare(constraint.IP, target)
constraints.go#L172: if len(n.IP) == net.IPv4len {
parser.go#L617: ips = append(ips, &net.IPNet{IP: net.IP(ip), Mask: net.IPMask(mask)})
x509.go#L1303: maskedIP := ipNet.IP.Mask(ipNet.Mask)
 |
The pages are generated with Golds v0.8.4. (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. |