Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for supportsIPv6 (0.3 sec)

  1. src/net/external_test.go

    package net
    
    import (
    	"fmt"
    	"internal/testenv"
    	"io"
    	"strings"
    	"testing"
    )
    
    func TestResolveGoogle(t *testing.T) {
    	testenv.MustHaveExternalNetwork(t)
    
    	if !supportsIPv4() || !supportsIPv6() || !*testIPv4 || !*testIPv6 {
    		t.Skip("both IPv4 and IPv6 are required")
    	}
    
    	for _, network := range []string{"tcp", "tcp4", "tcp6"} {
    		addr, err := ResolveTCPAddr(network, "www.google.com:http")
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  2. src/net/platform_test.go

    	// IPv6 communication using AF_INET6 sockets.
    	if !supportsIPv4() && ip.To4() != nil {
    		return false
    	}
    	if !supportsIPv6() && ip.To16() != nil && ip.To4() == nil {
    		return false
    	}
    	cip := ParseIP(client)
    	if cip != nil {
    		if !supportsIPv4() && cip.To4() != nil {
    			return false
    		}
    		if !supportsIPv6() && cip.To16() != nil && cip.To4() == nil {
    			return false
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/net/nettest/nettest.go

    // SupportsIPv4 reports whether the platform supports IPv4 networking
    // functionality.
    func SupportsIPv4() bool {
    	stackOnce.Do(probeStack)
    	return ipv4Enabled
    }
    
    // SupportsIPv6 reports whether the platform supports IPv6 networking
    // functionality.
    func SupportsIPv6() bool {
    	stackOnce.Do(probeStack)
    	return ipv6Enabled
    }
    
    // SupportsRawSocket reports whether the current session is available
    // to use raw sockets.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. 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)
  5. pilot/cmd/pilot-agent/options/agent.go

    		EnvoyPrometheusPort:         envoyPrometheusPortEnv,
    		MinimumDrainDuration:        minimumDrainDurationEnv,
    		ExitOnZeroActiveConnections: exitOnZeroActiveConnectionsEnv,
    		Platform:                    platform.Discover(proxy.SupportsIPv6()),
    		GRPCBootstrapPath:           grpcBootstrapEnv,
    		DisableEnvoy:                disableEnvoyEnv,
    		ProxyXDSDebugViaAgent:       proxyXDSDebugViaAgent,
    		ProxyXDSDebugViaAgentPort:   proxyXDSDebugViaAgentPort,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 10:02:56 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. src/net/interface_test.go

    	}
    	// Test the existence of connected unicast routes for IPv6.
    	// We can assume the existence of ::1/128 when at least one
    	// loopback interface is installed.
    	if supportsIPv6() && ifStats.loop > 0 && uniStats.ipv6 == 0 {
    		return fmt.Errorf("num IPv6 unicast routes = 0; want >0; summary: %+v, %+v", ifStats, uniStats)
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  9. 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)
  10. src/net/ipsock.go

    // functionality.
    func supportsIPv4() bool {
    	ipStackCaps.Once.Do(ipStackCaps.probe)
    	return ipStackCaps.ipv4Enabled
    }
    
    // supportsIPv6 reports whether the platform supports IPv6 networking
    // functionality.
    func supportsIPv6() bool {
    	ipStackCaps.Once.Do(ipStackCaps.probe)
    	return ipStackCaps.ipv6Enabled
    }
    
    // supportsIPv4map reports whether the platform supports mapping an
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top