type net.IPNet
37 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#L36: case *IPNet:
crypto/x509
constraints.go#L67: type nameConstraintsSet[T *net.IPNet | string, V net.IP | string] struct {
constraints.go#L126: func ipNetworkSubset(a, b *net.IPNet) bool {
constraints.go#L137: func ipNetworkCompare(a, b *net.IPNet) int {
constraints.go#L145: func ipBinarySearch(constraint *net.IPNet, target net.IP) int {
constraints.go#L149: func ipMatch(constraint *net.IPNet, target net.IP) bool {
constraints.go#L160: ipv4 *nameConstraintsSet[*net.IPNet, net.IP]
constraints.go#L161: ipv6 *nameConstraintsSet[*net.IPNet, net.IP]
constraints.go#L164: func newIPNetConstraints(l []*net.IPNet) interface {
constraints.go#L165: query(net.IP) (*net.IPNet, bool)
constraints.go#L170: var ipv4, ipv6 []*net.IPNet
constraints.go#L178: var v4c, v6c *nameConstraintsSet[*net.IPNet, net.IP]
constraints.go#L180: v4c = &nameConstraintsSet[*net.IPNet, net.IP]{
constraints.go#L186: v6c = &nameConstraintsSet[*net.IPNet, net.IP]{
constraints.go#L194: func (ipc *ipConstraints) query(ip net.IP) (*net.IPNet, bool) {
constraints.go#L195: var c *nameConstraintsSet[*net.IPNet, net.IP]
constraints.go#L453: func checkConstraints[T string | *net.IPNet, V any, P string | net.IP | parsedURI | rfc2821Mailbox](c constraints[T, V], s V, p P) error {
constraints.go#L468: ip constraints[*net.IPNet, net.IP]
constraints.go#L518: ip: constraints[*net.IPNet, net.IP]{"IP address", newIPNetConstraints(c.PermittedIPRanges), newIPNetConstraints(c.ExcludedIPRanges)},
parser.go#L568: getValues := func(subtrees cryptobyte.String) (dnsNames []string, ips []*net.IPNet, emails, uriDomains []string, err error) {
parser.go#L617: ips = append(ips, &net.IPNet{IP: net.IP(ip), Mask: net.IPMask(mask)})
x509.go#L792: PermittedIPRanges []*net.IPNet
x509.go#L793: ExcludedIPRanges []*net.IPNet
x509.go#L1302: ipAndMask := func(ipNet *net.IPNet) []byte {
x509.go#L1310: serialiseConstraints := func(dns []string, ips []*net.IPNet, emails []string, uriDomains []string) (der []byte, err error) {
golang.org/x/net/proxy
per_host.go#L19: bypassNetworks []*net.IPNet
per_host.go#L135: func (p *PerHost) AddNetwork(net *net.IPNet) {
vendor/golang.org/x/net/http/httpproxy
proxy.go#L339: cidr *net.IPNet
 |
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. |