package
1.15.2
Repository: https://github.com/ethereum/go-ethereum.git
Documentation: pkg.go.dev

# Functions

AddrAddr gets the IP address contained in addr.
AddrIsLAN reports whether an IP is a local network address.
AddrIsSpecialNetwork reports whether an IP is located in a special-use network range This includes broadcast, multicast and documentation addresses.
CheckRelayAddr reports whether an IP relayed from the given sender IP is a valid connection target.
CheckRelayIP reports whether an IP relayed from the given sender IP is a valid connection target.
IPToAddr converts net.IP to netip.Addr.
IsLAN reports whether an IP is a local network address.
IsSpecialNetwork reports whether an IP is located in a special-use network range This includes broadcast, multicast and documentation addresses.
IsTemporaryError checks whether the given error should be considered temporary.
IsTimeout checks whether the given error is a timeout.
NewIPTracker creates an IP tracker.
ParseNetlist parses a comma-separated list of CIDR masks.
RandomAddr creates a random IP address.
SameNet reports whether two IP addresses have an equal prefix of the given bit length.

# Structs

DistinctNetSet tracks IPs, ensuring that at most N of them fall into the same network range.
IPTracker predicts the external endpoint, i.e.

# Type aliases

Netlist is a list of IP networks.