type net.IP
102 uses
net (current package)
addrselect.go#L20: func sortByRFC6724withSrcs(addrs []IPAddr, srcs []IP) {
addrselect.go#L41: func srcAddrs(addrs []IPAddr) []IP {
addrselect.go#L42: srcs := make([]IP, len(addrs))
addrselect.go#L64: func ipAttrOf(ip IP) ipAttr {
addrselect.go#L79: srcs []IP // or nil if unreachable
addrselect.go#L308: func (t policyTable) Classify(ip IP) policyTableEntry {
addrselect.go#L329: func classifyScope(ip IP) scope {
addrselect.go#L355: func commonPrefixLen(a, b IP) (cpl int) {
dnsclient_unix.go#L680: addrs = append(addrs, IPAddr{IP: IP(a.A[:])})
dnsclient_unix.go#L692: addrs = append(addrs, IPAddr{IP: IP(aaaa.AAAA[:])})
hosts.go#L16: var ip IP
interface_linux.go#L194: ifa := &IPNet{IP: make(IP, IPv6len), Mask: CIDRMask(int(ifam.Prefixlen), 8*IPv6len)}
interface_linux.go#L264: ifma := &IPAddr{IP: IP{b[0], b[1], b[2], b[3], b[4], b[5], b[6], b[7], b[8], b[9], b[10], b[11], b[12], b[13], b[14], b[15]}}
ip.go#L35: type IP []byte
ip.go#L45: IP IP // network number
ip.go#L51: func IPv4(a, b, c, d byte) IP {
ip.go#L52: p := make(IP, IPv6len)
ip.go#L109: IPv6zero = IP{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ip.go#L110: IPv6unspecified = IP{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ip.go#L111: IPv6loopback = IP{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}
ip.go#L112: IPv6interfacelocalallnodes = IP{0xff, 0x01, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x01}
ip.go#L113: IPv6linklocalallnodes = IP{0xff, 0x02, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x01}
ip.go#L114: IPv6linklocalallrouters = IP{0xff, 0x02, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x02}
ip.go#L119: func (ip IP) IsUnspecified() bool {
ip.go#L124: func (ip IP) IsLoopback() bool {
ip.go#L133: func (ip IP) IsPrivate() bool {
ip.go#L151: func (ip IP) IsMulticast() bool {
ip.go#L160: func (ip IP) IsInterfaceLocalMulticast() bool {
ip.go#L166: func (ip IP) IsLinkLocalMulticast() bool {
ip.go#L175: func (ip IP) IsLinkLocalUnicast() bool {
ip.go#L190: func (ip IP) IsGlobalUnicast() bool {
ip.go#L200: func isZeros(p IP) bool {
ip.go#L211: func (ip IP) To4() IP {
ip.go#L226: func (ip IP) To16() IP {
ip.go#L246: func (ip IP) DefaultMask() IPMask {
ip.go#L270: func (ip IP) Mask(mask IPMask) IP {
ip.go#L281: out := make(IP, n)
ip.go#L313: func (ip IP) String() string {
ip.go#L393: func ipEmptyString(ip IP) string {
ip.go#L403: func (ip IP) MarshalText() ([]byte, error) {
ip.go#L415: func (ip *IP) UnmarshalText(text []byte) error {
ip.go#L432: func (ip IP) Equal(x IP) bool {
ip.go#L445: func (ip IP) matchAddrFamily(x IP) bool {
ip.go#L497: func networkNumberAndMask(n *IPNet) (ip IP, m IPMask) {
ip.go#L521: func (n *IPNet) Contains(ip IP) bool {
ip.go#L563: func parseIPv4(s string) IP {
ip.go#L595: func parseIPv6Zone(s string) (IP, string) {
ip.go#L602: func parseIPv6(s string) (ip IP) {
ip.go#L603: ip = make(IP, IPv6len)
ip.go#L707: func ParseIP(s string) IP {
ip.go#L721: func parseIPZone(s string) (IP, string) {
ip.go#L741: func ParseCIDR(s string) (IP, *IPNet, error) {
iprawsock.go#L32: IP IP
ipsock.go#L310: func loopbackIP(net string) IP {
ipsock.go#L314: return IP{127, 0, 0, 1}
ipsock_posix.go#L145: func ipToSockaddrInet4(ip IP, port int) (syscall.SockaddrInet4, error) {
ipsock_posix.go#L158: func ipToSockaddrInet6(ip IP, port int, zone string) (syscall.SockaddrInet6, error) {
ipsock_posix.go#L183: func ipToSockaddr(family int, ip IP, port int, zone string) (syscall.Sockaddr, error) {
lookup.go#L193: func LookupIP(host string) ([]IP, error) {
lookup.go#L198: ips := make([]IP, len(addrs))
lookup.go#L215: func (r *Resolver) LookupIP(ctx context.Context, network, host string) ([]IP, error) {
lookup.go#L229: ips := make([]IP, 0, len(addrs))
sockopt_posix.go#L23: func ipv4AddrToInterface(ip IP) (*Interface, error) {
sockopt_posix.go#L52: func interfaceToIPv4Addr(ifi *Interface) (IP, error) {
sockoptip_posix.go#L14: func joinIPv4Group(fd *netFD, ifi *Interface, ip IP) error {
sockoptip_posix.go#L40: func joinIPv6Group(fd *netFD, ifi *Interface, ip IP) error {
tcpsock.go#L22: IP IP
udpsock.go#L25: IP IP
udpsock_posix.go#L241: func listenIPv4MulticastUDP(c *UDPConn, ifi *Interface, ip IP) error {
udpsock_posix.go#L256: func listenIPv6MulticastUDP(c *UDPConn, ifi *Interface, ip IP) error {
cgo_socknew.go#L25: func cgoSockaddrInet4(ip IP) * /*line :22:31*/_Ctype_struct_sockaddr /*line :22:48*/ {
cgo_socknew.go#L31: func cgoSockaddrInet6(ip IP, zone int) * /*line :28:41*/_Ctype_struct_sockaddr /*line :28:58*/ {
cgo_unix.go#L334: func cgoSockaddr(ip IP, zone string) (* /*line :331:40*/_Ctype_struct_sockaddr /*line :331:57*/, /*line :331:59*/_Ctype_socklen_t /*line :331:70*/) {
cgo_unix.go#L344: func copyIP(x IP) IP {
cgo_unix.go#L348: y := make(IP, len(x))
net/http
socks_bundle.go#L132: a.IP = make(net.IP, net.IPv4len)
socks_bundle.go#L135: a.IP = make(net.IP, net.IPv6len)
socks_bundle.go#L243: IP net.IP
crypto/x509
parser.go#L386: func parseSANExtension(der cryptobyte.String) (dnsNames, emailAddresses []string, ipAddresses []net.IP, uris []*url.URL, err error) {
parser.go#L588: ips = append(ips, &net.IPNet{IP: net.IP(ip), Mask: net.IPMask(mask)})
verify.go#L438: func matchIPConstraint(ip net.IP, constraint *net.IPNet) (bool, error) {
verify.go#L646: ip := net.IP(data)
verify.go#L653: return matchIPConstraint(parsedName.(net.IP), constraint.(*net.IPNet))
x509.go#L709: IPAddresses []net.IP
x509.go#L992: func marshalSANs(dnsNames, emailAddresses []string, ipAddresses []net.IP, uris []*url.URL) (derBytes []byte, err error) {
x509.go#L1754: IPAddresses []net.IP
github.com/go-pg/pg/v10/orm
table.go#L42: ipType = reflect.TypeOf((*net.IP)(nil)).Elem()
github.com/go-pg/pg/v10/types
append_value.go#L221: ip := v.Interface().(net.IP)
scan_value.go#L21: ipType = reflect.TypeOf((*net.IP)(nil)).Elem()
scan_value.go#L291: ptr := v.Addr().Interface().(*net.IP)
vendor/golang.org/x/net/http/httpproxy
proxy.go#L326: match(host, port string, ip net.IP) bool
proxy.go#L332: func (a allMatch) match(host, port string, ip net.IP) bool {
proxy.go#L340: func (m cidrMatch) match(host, port string, ip net.IP) bool {
proxy.go#L345: ip net.IP
proxy.go#L349: func (m ipMatch) match(host, port string, ip net.IP) bool {
proxy.go#L363: func (m domainMatch) match(host, port string, ip net.IP) bool {