Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 289 for ip64 (0.04 sec)

  1. src/cmd/compile/internal/test/float_test.go

    func cvt11(a float32) int {
    	return int(a)
    }
    
    //go:noinline
    func cvt12(a float32) uint {
    	return uint(a)
    }
    
    //go:noinline
    func f2i64p(v float64) *int64 {
    	return ip64(int64(v / 0.1))
    }
    
    //go:noinline
    func ip64(v int64) *int64 {
    	return &v
    }
    
    func TestFloatConvert(t *testing.T) {
    	if got := cvt1(3.5); got != 3 {
    		t.Errorf("cvt1 got %d, wanted 3", got)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 12.5K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/endpoint_test.go

    			expectedError: true,
    		},
    		{
    			name:         "invalid ip4, but valid DNS",
    			hostport:     "259.2.3.4",
    			expectedHost: "259.2.3.4",
    		},
    		{
    			name:          "invalid ip4",
    			hostport:      "1..3.4",
    			expectedError: true,
    		},
    		{
    			name:          "invalid ip4(2):port",
    			hostport:      "1..3.4:1234",
    			expectedError: true,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Feb 23 03:19:26 UTC 2019
    - 10K bytes
    - Viewed (0)
  3. src/net/ip.go

    func (ip IP) IsLinkLocalMulticast() bool {
    	if ip4 := ip.To4(); ip4 != nil {
    		return ip4[0] == 224 && ip4[1] == 0 && ip4[2] == 0
    	}
    	return len(ip) == IPv6len && ip[0] == 0xff && ip[1]&0x0f == 0x02
    }
    
    // IsLinkLocalUnicast reports whether ip is a link-local
    // unicast address.
    func (ip IP) IsLinkLocalUnicast() bool {
    	if ip4 := ip.To4(); ip4 != nil {
    		return ip4[0] == 169 && ip4[1] == 254
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 03:13:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  4. src/net/dial.go

    	d.mptcpStatus.set(use)
    }
    
    // Dial connects to the address on the named network.
    //
    // Known networks are "tcp", "tcp4" (IPv4-only), "tcp6" (IPv6-only),
    // "udp", "udp4" (IPv4-only), "udp6" (IPv6-only), "ip", "ip4"
    // (IPv4-only), "ip6" (IPv6-only), "unix", "unixgram" and
    // "unixpacket".
    //
    // For TCP and UDP networks, the address has the form "host:port".
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/net/InetAddresses.java

        }
    
        return true;
      }
    
      /**
       * Returns the IPv4 address embedded in an IPv4 compatible address.
       *
       * @param ip {@link Inet6Address} to be examined for an embedded IPv4 address
       * @return {@link Inet4Address} of the embedded IPv4 address
       * @throws IllegalArgumentException if the argument is not a valid IPv4 compatible address
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  6. src/net/lookup_test.go

    				t.Skip("not supported")
    			}
    			defer fixup()
    
    			for _, network := range []string{"ip", "ip4", "ip6"} {
    				t.Run("network: "+network, func(t *testing.T) {
    					switch {
    					case network == "ip4" && !v4Ok:
    						t.Skip("IPv4 is not supported")
    					case network == "ip6" && !v6Ok:
    						t.Skip("IPv6 is not supported")
    					}
    
    					// google.com has both A and AAAA records.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  7. src/net/listen_test.go

    	// darwin, kernel version 11.3.0
    	//	net.inet6.ip6.v6only=0 (overridable by sysctl or IPV6_V6ONLY option)
    	// freebsd, kernel version 8.2
    	//	net.inet6.ip6.v6only=1 (overridable by sysctl or IPV6_V6ONLY option)
    	// linux, kernel version 3.0.0
    	//	net.ipv6.bindv6only=0 (overridable by sysctl or IPV6_V6ONLY option)
    	// openbsd, kernel version 5.0
    	//	net.inet6.ip6.v6only=1 (overriding is prohibited)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/net/interface_test.go

    		{"gatewaymiddle", gatewaymiddle, 1, &ipv4Route, ""},
    		{"gatewaylast", gatewaylast, 1, &ipv4Route, ""},
    		{"no routes", nothing, 0, nil, ""},
    		{"badDestination", badDestination, 0, nil, "invalid IPv4"},
    		{"badGateway", badGateway, 0, nil, "invalid IPv4"},
    		{"route_Invalidhex", route_Invalidhex, 0, nil, "odd length hex string"},
    		{"no default routes", noInternetConnection, 0, nil, ""},
    	}
    	for _, tc := range testCases {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 10 07:29:34 UTC 2023
    - 33.2K bytes
    - Viewed (0)
  9. pkg/proxy/nftables/helpers_test.go

    		add rule ip6 kube-proxy firewall-check ip6 daddr . meta l4proto . th dport vmap @firewall-ips
    		add rule ip6 kube-proxy mark-for-masquerade mark set mark or 0x4000
    		add rule ip6 kube-proxy masquerading mark and 0x4000 == 0 return
    		add rule ip6 kube-proxy masquerading mark set mark xor 0x4000
    		add rule ip6 kube-proxy masquerading masquerade fully-random
    		add rule ip6 kube-proxy nat-output jump services
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 02 09:57:47 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  10. src/net/ip_test.go

    	in   IP
    	mask IPMask
    	out  IP
    }{
    	{IPv4(192, 168, 1, 127), IPv4Mask(255, 255, 255, 128), IPv4(192, 168, 1, 0)},
    	{IPv4(192, 168, 1, 127), IPMask(ParseIP("255.255.255.192")), IPv4(192, 168, 1, 64)},
    	{IPv4(192, 168, 1, 127), IPMask(ParseIP("ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffe0")), IPv4(192, 168, 1, 96)},
    	{IPv4(192, 168, 1, 127), IPv4Mask(255, 0, 255, 0), IPv4(192, 0, 1, 0)},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 01:17:29 UTC 2024
    - 25.7K bytes
    - Viewed (0)
Back to top