Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for supportsIPv6 (0.14 sec)

  1. 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)
  2. src/net/ipsock_test.go

    	{ipv6only, []IPAddr{{IP: IPv4(127, 0, 0, 1)}}, testInetaddr, nil, nil, nil, &AddrError{errNoSuitableAddress.Error(), "ADDR"}},
    }
    
    func TestAddrList(t *testing.T) {
    	if !supportsIPv4() || !supportsIPv6() {
    		t.Skip("both IPv4 and IPv6 are required")
    	}
    
    	for i, tt := range addrListTests {
    		addrs, err := filterAddrList(tt.filter, tt.ips, tt.inetaddr, "ADDR")
    		if !reflect.DeepEqual(err, tt.err) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Apr 15 22:22:09 UTC 2017
    - 6.8K bytes
    - Viewed (0)
  3. 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)
  4. src/net/main_test.go

    		resolveIPAddrTests = append(resolveIPAddrTests, []resolveIPAddrTest{
    			{"ip", "localhost", &IPAddr{IP: IPv4(127, 0, 0, 1)}, nil},
    			{"ip4", "localhost", &IPAddr{IP: IPv4(127, 0, 0, 1)}, nil},
    		}...)
    	}
    
    	if supportsIPv6() {
    		resolveTCPAddrTests = append(resolveTCPAddrTests, resolveTCPAddrTest{"tcp6", "localhost:3", &TCPAddr{IP: IPv6loopback, Port: 3}, nil})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. pilot/pkg/model/service.go

    			if node.SupportsIPv4() && s.AutoAllocatedIPv4Address != "" {
    				return s.AutoAllocatedIPv4Address
    			}
    			if node.SupportsIPv6() && s.AutoAllocatedIPv6Address != "" {
    				return s.AutoAllocatedIPv6Address
    			}
    		}
    	}
    
    	return s.DefaultAddress
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 02:03:58 UTC 2024
    - 46.3K bytes
    - Viewed (0)
Back to top