Lines Matching refs:IP
45 {laddr: TCPAddr{IP: ParseIP("::1")}, value: 1},
47 {laddr: TCPAddr{IP: IPv4(127, 0, 0, 1)}, value: 0},
148 // Internet sockets (TCP, UDP, IP)
157 func ipToSockaddr(family int, ip IP, port int, zone string) (syscall.Sockaddr, error) {
160 if len(ip) == 0 {
161 ip = IPv4zero
163 ip4 := ip.To4()
165 return nil, &AddrError{Err: "non-IPv4 address", Addr: ip.String()}
171 // In general, an IP wildcard address, which is either
172 // "0.0.0.0" or "::", means the entire IP addressing
175 // of IP node.
177 // When the IP node supports IPv4-mapped IPv6 address,
179 // address of both IP addressing spaces by specifying
181 if len(ip) == 0 || ip.Equal(IPv4zero) {
182 ip = IPv6zero
186 ip6 := ip.To16()
188 return nil, &AddrError{Err: "non-IPv6 address", Addr: ip.String()}
194 return nil, &AddrError{Err: "invalid address family", Addr: ip.String()}