Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for supportsIPv6 (0.21 sec)

  1. src/net/tcpsock_test.go

    }
    
    func BenchmarkTCP6OneShot(b *testing.B) {
    	if !supportsIPv6() {
    		b.Skip("ipv6 is not supported")
    	}
    	benchmarkTCP(b, false, false, "[::1]:0")
    }
    
    func BenchmarkTCP6OneShotTimeout(b *testing.B) {
    	if !supportsIPv6() {
    		b.Skip("ipv6 is not supported")
    	}
    	benchmarkTCP(b, false, true, "[::1]:0")
    }
    
    func BenchmarkTCP6Persistent(b *testing.B) {
    	if !supportsIPv6() {
    		b.Skip("ipv6 is not supported")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  2. src/net/mockserver_test.go

    		return ln
    	}
    
    	switch network {
    	case "tcp":
    		if supportsIPv4() {
    			return listen("tcp4", "127.0.0.1:0")
    		}
    		if supportsIPv6() {
    			return listen("tcp6", "[::1]:0")
    		}
    	case "tcp4":
    		if supportsIPv4() {
    			return listen("tcp4", "127.0.0.1:0")
    		}
    	case "tcp6":
    		if supportsIPv6() {
    			return listen("tcp6", "[::1]:0")
    		}
    	case "unix", "unixpacket":
    		return listen(network, testUnixAddr(t))
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. src/net/dial_test.go

    	case "windows":
    		t.Skipf("not implemented a way to cancel dial racers in TCP SYN-SENT state on %s", runtime.GOOS)
    	case "openbsd":
    		testenv.SkipFlaky(t, 15157)
    	}
    	if !supportsIPv4() || !supportsIPv6() {
    		t.Skip("both IPv4 and IPv6 are required")
    	}
    
    	before := sw.Sockets()
    	origTestHookLookupIP := testHookLookupIP
    	defer func() { testHookLookupIP = origTestHookLookupIP }()
    	testHookLookupIP = lookupLocalhost
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/cluster_builder.go

    		proxyVersion:       proxy.Metadata.IstioVersion,
    		sidecarScope:       proxy.SidecarScope,
    		passThroughBindIPs: getPassthroughBindIPs(proxy.GetIPMode()),
    		supportsIPv4:       proxy.SupportsIPv4(),
    		supportsIPv6:       proxy.SupportsIPv6(),
    		sendHbone:          features.EnableHBONESend || proxy.IsWaypointProxy(),
    		locality:           proxy.Locality,
    		proxyLabels:        proxy.Labels,
    		proxyView:          proxy.GetView(),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 31.6K bytes
    - Viewed (0)
  5. src/net/listen_test.go

    // to be greater than or equal to 4.4.
    func TestDualStackTCPListener(t *testing.T) {
    	switch runtime.GOOS {
    	case "plan9":
    		t.Skipf("not supported on %s", runtime.GOOS)
    	}
    	if !supportsIPv4() || !supportsIPv6() {
    		t.Skip("both IPv4 and IPv6 are required")
    	}
    
    	for _, tt := range dualStackTCPListenerTests {
    		if !testableListenArgs(tt.network1, JoinHostPort(tt.address1, "0"), "") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  6. src/net/udpsock_test.go

    	"fmt"
    	"internal/testenv"
    	"net/netip"
    	"os"
    	"reflect"
    	"runtime"
    	"testing"
    	"time"
    )
    
    func BenchmarkUDP6LinkLocalUnicast(b *testing.B) {
    	testHookUninstaller.Do(uninstallTestHooks)
    
    	if !supportsIPv6() {
    		b.Skip("IPv6 is not supported")
    	}
    	ifi := loopbackInterface()
    	if ifi == nil {
    		b.Skip("loopback interface not found")
    	}
    	lla := ipv6LinkLocalUnicastAddr(ifi)
    	if lla == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  7. src/net/lookup_test.go

    	"8.8.8.8",
    	"8.8.4.4",
    	"2001:4860:4860::8888",
    	"2001:4860:4860::8844",
    }
    
    func TestLookupGooglePublicDNSAddr(t *testing.T) {
    	mustHaveExternalNetwork(t)
    
    	if !supportsIPv4() || !supportsIPv6() || !*testIPv4 || !*testIPv6 {
    		t.Skip("both IPv4 and IPv6 are required")
    	}
    
    	defer dnsWaitGroup.Wait()
    
    	for _, ip := range lookupGooglePublicDNSAddrTests {
    		names, err := LookupAddr(ip)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  8. pilot/pkg/model/context.go

    }
    
    // SupportsIPv4 returns true if proxy supports IPv4 addresses.
    func (node *Proxy) SupportsIPv4() bool {
    	return node.ipMode == IPv4 || node.ipMode == Dual
    }
    
    // SupportsIPv6 returns true if proxy supports IPv6 addresses.
    func (node *Proxy) SupportsIPv6() bool {
    	return node.ipMode == IPv6 || node.ipMode == Dual
    }
    
    // IsIPv6 returns true if proxy only supports IPv6 addresses.
    func (node *Proxy) IsIPv6() bool {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 08:29:05 UTC 2024
    - 33.6K bytes
    - Viewed (0)
  9. src/net/error_test.go

    	}
    }
    
    func TestDialAddrError(t *testing.T) {
    	switch runtime.GOOS {
    	case "plan9":
    		t.Skipf("not supported on %s", runtime.GOOS)
    	}
    
    	if !supportsIPv4() || !supportsIPv6() {
    		t.Skip("both IPv4 and IPv6 are required")
    	}
    
    	for _, tt := range []struct {
    		network string
    		lit     string
    		addr    *TCPAddr
    	}{
    		{"tcp4", "::1", nil},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  10. pkg/istio-agent/agent.go

    }
    
    // IsIPv6 returns true if proxy only supports IPv6 addresses.
    func (node *Proxy) IsIPv6() bool {
    	return node.ipMode == model.IPv6
    }
    
    func (node *Proxy) SupportsIPv6() bool {
    	return node.ipMode == model.IPv6 || node.ipMode == model.Dual
    }
    
    const (
    	serviceNodeSeparator = "~"
    )
    
    func (node *Proxy) ServiceNode() string {
    	ip := ""
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 10:02:56 UTC 2024
    - 26.7K bytes
    - Viewed (0)
Back to top