- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for ipv6only (0.25 sec)
-
staging/src/k8s.io/apiserver/pkg/server/config_selfclient_test.go
package server import ( "net" "testing" netutils "k8s.io/utils/net" ) func TestLoopbackHostPortIPv4(t *testing.T) { _, ipv6only, err := isIPv6LoopbackSupported() if err != nil { t.Fatalf("fail to enumerate network interface, %s", err) } if ipv6only { t.Fatalf("no ipv4 loopback interface") } host, port, err := LoopbackHostPort("1.2.3.4:443") if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 20 08:42:09 UTC 2021 - 2.7K bytes - Viewed (0) -
src/net/sockopt_solaris.go
"os" "syscall" ) func setDefaultSockopts(s, family, sotype int, ipv6only bool) error { if family == syscall.AF_INET6 && sotype != syscall.SOCK_RAW { // Allow both IP versions even if the OS default // is otherwise. Note that some operating systems // never admit this option. syscall.SetsockoptInt(s, syscall.IPPROTO_IPV6, syscall.IPV6_V6ONLY, boolint(ipv6only)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 09 00:33:27 UTC 2020 - 1.3K bytes - Viewed (0) -
src/net/sockopt_windows.go
) func setDefaultSockopts(s syscall.Handle, family, sotype int, ipv6only bool) error { if family == syscall.AF_INET6 && sotype != syscall.SOCK_RAW { // Allow both IP versions even if the OS default // is otherwise. Note that some operating systems // never admit this option. syscall.SetsockoptInt(s, syscall.IPPROTO_IPV6, syscall.IPV6_V6ONLY, boolint(ipv6only)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 09 00:33:27 UTC 2020 - 1.5K bytes - Viewed (0) -
src/net/ipsock_test.go
{ipv4only, nil, testInetaddr, nil, nil, nil, &AddrError{errNoSuitableAddress.Error(), "ADDR"}}, {ipv4only, []IPAddr{{IP: IPv6loopback}}, testInetaddr, nil, nil, nil, &AddrError{errNoSuitableAddress.Error(), "ADDR"}}, {ipv6only, nil, testInetaddr, nil, nil, nil, &AddrError{errNoSuitableAddress.Error(), "ADDR"}},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Apr 15 22:22:09 UTC 2017 - 6.8K bytes - Viewed (0) -
src/net/sockopt_linux.go
"os" "syscall" ) func setDefaultSockopts(s, family, sotype int, ipv6only bool) error { if family == syscall.AF_INET6 && sotype != syscall.SOCK_RAW { // Allow both IP versions even if the OS default // is otherwise. Note that some operating systems // never admit this option. syscall.SetsockoptInt(s, syscall.IPPROTO_IPV6, syscall.IPV6_V6ONLY, boolint(ipv6only)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 09 00:33:27 UTC 2020 - 1.3K bytes - Viewed (0) -
src/net/sockopt_aix.go
"os" "syscall" ) func setDefaultSockopts(s, family, sotype int, ipv6only bool) error { if family == syscall.AF_INET6 && sotype != syscall.SOCK_RAW { // Allow both IP versions even if the OS default // is otherwise. Note that some operating systems // never admit this option. syscall.SetsockoptInt(s, syscall.IPPROTO_IPV6, syscall.IPV6_V6ONLY, boolint(ipv6only)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 09 00:33:27 UTC 2020 - 1.4K bytes - Viewed (0) -
src/net/ipsock.go
} return addrs, nil } // ipv4only reports whether addr is an IPv4 address. func ipv4only(addr IPAddr) bool { return addr.IP.To4() != nil } // ipv6only reports whether addr is an IPv6 address except IPv4-mapped IPv6 address. func ipv6only(addr IPAddr) bool { return len(addr.IP) == IPv6len && addr.IP.To4() == nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 9.4K bytes - Viewed (0) -
src/net/sockopt_bsd.go
//go:build darwin || dragonfly || freebsd || netbsd || openbsd package net import ( "os" "runtime" "syscall" ) func setDefaultSockopts(s, family, sotype int, ipv6only bool) error { if runtime.GOOS == "dragonfly" && sotype != syscall.SOCK_RAW { // On DragonFly BSD, we adjust the ephemeral port // range because unlike other BSD systems its default
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 2.2K bytes - Viewed (0) -
src/net/ipsock_posix.go
case "aix", "windows", "openbsd", "js", "wasip1": if mode == "dial" && raddr.isWildcard() { raddr = raddr.toLocal(net) } } family, ipv6only := favoriteAddrFamily(net, laddr, raddr, mode) return socket(ctx, net, family, sotype, proto, ipv6only, laddr, raddr, ctrlCtxFn) } func ipToSockaddrInet4(ip IP, port int) (syscall.SockaddrInet4, error) { if len(ip) == 0 { ip = IPv4zero }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 8.6K bytes - Viewed (0) -
src/net/sockopt_fake.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build js || wasip1 package net import "syscall" func setDefaultSockopts(s, family, sotype int, ipv6only bool) error { return nil } func setDefaultListenerSockopts(s int) error { return nil } func setDefaultMulticastSockopts(s int) error { return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 955 bytes - Viewed (0)