- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 36 for ipAddrs (0.13 sec)
-
tools/istio-iptables/pkg/config/config_test.go
"net" "net/netip" "testing" ) var tesrLocalIPAddrs = func(ips []netip.Addr) ([]net.Addr, error) { var IPAddrs []net.Addr for i := 0; i < len(ips); i++ { var ipAddr net.Addr ipNetAddr := &net.IPNet{IP: net.ParseIP(ips[i].String())} ipAddr = ipNetAddr IPAddrs = append(IPAddrs, ipAddr) } return IPAddrs, nil } func TestGetLocalIP(t *testing.T) { tests := []struct { name string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 22:24:38 UTC 2024 - 2.6K bytes - Viewed (0) -
tools/istio-iptables/pkg/config/config.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 22:24:38 UTC 2024 - 9.2K bytes - Viewed (0) -
pilot/cmd/pilot-agent/app/cmd.go
var ip net.IP switch v := addr.(type) { case *net.IPNet: ip = v.IP case *net.IPAddr: ip = v.IP default: continue } // handling ipv4 wrapping in ipv6 ipAddr, okay := netip.AddrFromSlice(ip) if !okay { continue } unwrapAddr := ipAddr.Unmap()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 16 22:12:28 UTC 2024 - 11.9K bytes - Viewed (0) -
src/net/lookup_test.go
return strings.HasSuffix(strings.ToLower(s), strings.ToLower(suffix)) } func lookupLocalhost(ctx context.Context, fn func(context.Context, string, string) ([]IPAddr, error), network, host string) ([]IPAddr, error) { switch host { case "localhost": return []IPAddr{ {IP: IPv4(127, 0, 0, 1)}, {IP: IPv6loopback}, }, nil default: return fn(ctx, network, host) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 41.4K bytes - Viewed (0) -
src/net/iprawsock_posix.go
} return syscall.AF_INET6 } func (a *IPAddr) sockaddr(family int) (syscall.Sockaddr, error) { if a == nil { return nil, nil } return ipToSockaddr(family, a.IP, 0, a.Zone) } func (a *IPAddr) toLocal(net string) sockaddr { return &IPAddr{loopbackIP(net), a.Zone} } func (c *IPConn) readFrom(b []byte) (int, *IPAddr, error) { // TODO(cw,rsc): consider using readv if we know the family
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:54:32 UTC 2024 - 3.9K bytes - Viewed (0) -
src/net/interface_windows.go
return nil, os.NewSyscallError("sockaddr", err) } switch sa := sa.(type) { case *syscall.SockaddrInet4: ifat = append(ifat, &IPAddr{IP: IPv4(sa.Addr[0], sa.Addr[1], sa.Addr[2], sa.Addr[3])}) case *syscall.SockaddrInet6: ifa := &IPAddr{IP: make(IP, IPv6len)} copy(ifa.IP, sa.Addr[:]) ifat = append(ifat, ifa) } } } } return ifat, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 15 10:25:02 UTC 2024 - 5.5K bytes - Viewed (0) -
src/net/ipsock.go
// and ipv6only. It returns every address when the filter is nil. // The result contains at least one address when error is nil. func filterAddrList(filter func(IPAddr) bool, ips []IPAddr, inetaddr func(IPAddr) Addr, originalAddr string) (addrList, error) { var addrs addrList for _, ip := range ips { if filter == nil || filter(ip) { addrs = append(addrs, inetaddr(ip)) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 9.4K bytes - Viewed (0) -
security/pkg/server/ca/server_test.go
} mockCertChain := []string{"cert", "cert_chain", "root_cert"} mockIPAddr := &net.IPAddr{IP: net.IPv4(192, 168, 1, 1)} testCerts := map[string]struct { certChain [][]*x509.Certificate caller *security.Caller fakeAuthInfo *mockAuthInfo code codes.Code ipAddr *net.IPAddr }{ // no client certificate is presented "No client certificate": { certChain: nil,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 28 16:41:38 UTC 2024 - 15.8K bytes - Viewed (0) -
src/net/main_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 7.5K bytes - Viewed (0) -
pkg/test/framework/components/istio/util.go
break } } if nodePort == 0 { return nil, false, fmt.Errorf("no port %d found in service: %s/%s", port, ns, svcName) } ipAddr, err := netip.ParseAddr(ip) if err != nil { return nil, false, err } return []any{netip.AddrPortFrom(ipAddr, uint16(nodePort))}, true, nil } // Otherwise, get the load balancer IP.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 29 17:13:34 UTC 2024 - 4.7K bytes - Viewed (0)