type net.IPNet
20 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)}
ip.go#L46: type IPNet struct {
ip.go#L456: func networkNumberAndMask(n *IPNet) (ip IP, m IPMask) {
ip.go#L480: func (n *IPNet) Contains(ip IP) bool {
ip.go#L498: func (n *IPNet) Network() string { return "ip+net" }
ip.go#L506: func (n *IPNet) String() string {
ip.go#L550: func ParseCIDR(s string) (IP, *IPNet, error) {
ip.go#L567: return IP(addr16[:]), &IPNet{IP: IP(addr16[:]).Mask(m), Mask: m}, nil
sockopt_posix.go#L37: case *IPNet:
sockopt_posix.go#L61: case *IPNet:
crypto/x509
parser.go#L544: getValues := func(subtrees cryptobyte.String) (dnsNames []string, ips []*net.IPNet, emails, uriDomains []string, err error) {
parser.go#L601: ips = append(ips, &net.IPNet{IP: net.IP(ip), Mask: net.IPMask(mask)})
verify.go#L479: func matchIPConstraint(ip net.IP, constraint *net.IPNet) (bool, error) {
verify.go#L699: return matchIPConstraint(parsedName.(net.IP), constraint.(*net.IPNet))
x509.go#L775: PermittedIPRanges []*net.IPNet
x509.go#L776: ExcludedIPRanges []*net.IPNet
x509.go#L1285: ipAndMask := func(ipNet *net.IPNet) []byte {
x509.go#L1293: serialiseConstraints := func(dns []string, ips []*net.IPNet, emails []string, uriDomains []string) (der []byte, err error) {
vendor/golang.org/x/net/http/httpproxy
proxy.go#L339: cidr *net.IPNet