Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 448 for IPV4 (0.03 sec)

  1. tools/istio-iptables/pkg/config/config_test.go

    	}
    	return IPAddrs, nil
    }
    
    func TestGetLocalIP(t *testing.T) {
    	tests := []struct {
    		name     string
    		lipas    func() ([]net.Addr, error)
    		isDS     bool
    		expected bool
    	}{
    		{
    			name: "ipv4 only local ip addresses",
    			lipas: func() ([]net.Addr, error) {
    				return tesrLocalIPAddrs([]netip.Addr{
    					netip.MustParseAddr("127.0.0.1"),
    					netip.MustParseAddr("1.2.3.5"),
    				})
    			},
    			isDS:     false,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 22:24:38 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. tools/istio-iptables/pkg/validation/vld_unix.go

    	if isIpv4 {
    		addr, err = unix.GetsockoptIPv6MTUInfo(
    			int(fd),
    			unix.IPPROTO_IP,
    			constants.SoOriginalDst)
    		if err != nil {
    			log.Errorf("Error ipv4 getsockopt: %v", err)
    			return
    		}
    		// See struct sockaddr_in
    		daddr = net.IPv4(
    			addr.Addr.Addr[0], addr.Addr.Addr[1], addr.Addr.Addr[2], addr.Addr.Addr[3])
    	} else {
    		addr, err = unix.GetsockoptIPv6MTUInfo(
    			int(fd), unix.IPPROTO_IPV6,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 08 03:52:24 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. src/net/interface_linux.go

    	return ift, nil
    }
    
    const (
    	// See linux/if_arp.h.
    	// Note that Linux doesn't support IPv4 over IPv6 tunneling.
    	sysARPHardwareIPv4IPv4 = 768 // IPv4 over IPv4 tunneling
    	sysARPHardwareIPv6IPv6 = 769 // IPv6 over IPv6 tunneling
    	sysARPHardwareIPv6IPv4 = 776 // IPv6 over IPv4 tunneling
    	sysARPHardwareGREIPv4  = 778 // any over GRE over IPv4 tunneling
    	sysARPHardwareGREIPv6  = 823 // any over GRE over IPv6 tunneling
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 27 05:42:03 UTC 2022
    - 7K bytes
    - Viewed (0)
  4. src/flag/example_textvar_test.go

    func ExampleTextVar() {
    	fs := flag.NewFlagSet("ExampleTextVar", flag.ContinueOnError)
    	fs.SetOutput(os.Stdout)
    	var ip net.IP
    	fs.TextVar(&ip, "ip", net.IPv4(192, 168, 0, 100), "`IP address` to parse")
    	fs.Parse([]string{"-ip", "127.0.0.1"})
    	fmt.Printf("{ip: %v}\n\n", ip)
    
    	// 256 is not a valid IPv4 component
    	ip = nil
    	fs.Parse([]string{"-ip", "256.0.0.1"})
    	fmt.Printf("{ip: %v}\n\n", ip)
    
    	// Output:
    	// {ip: 127.0.0.1}
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 10 16:56:17 UTC 2022
    - 847 bytes
    - Viewed (0)
  5. okhttp-android/src/androidTest/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt

        val allAddresses = mutableListOf<InetAddress>()
        var exception: Exception? = null
        val latch = CountDownLatch(1)
    
        // assumes an IPv4 address
        AndroidAsyncDns.IPv4.query(
          hostname,
          object : AsyncDns.Callback {
            override fun onResponse(
              hostname: String,
              addresses: List<InetAddress>,
            ) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. pilot/pkg/util/network/ip.go

    )
    
    // Network-related utility functions
    const (
    	waitInterval = 100 * time.Millisecond
    	waitTimeout  = 2 * time.Minute
    )
    
    // ip family enum
    type IPFamilyType int
    
    const (
    	IPv4 = iota
    	IPv6
    	UNKNOWN
    )
    
    type lookupIPAddrType = func(ctx context.Context, addr string) ([]netip.Addr, error)
    
    // ErrResolveNoAddress error occurs when IP address resolution is attempted,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 21 21:27:21 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/net/interface.go

    func (_ networkInterface) Interfaces() ([]net.Interface, error) {
    	return net.Interfaces()
    }
    
    // getAllDefaultRoutes obtains IPv4 and IPv6 default routes on the node. If unable
    // to read the IPv4 routing info file, we return an error. If unable to read the IPv6
    // routing info file (which is optional), we'll just use the IPv4 route information.
    // Using all the routing info, if no default routes are found, an error is returned.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 07:07:03 UTC 2022
    - 14.7K bytes
    - Viewed (0)
  8. cmd/kube-controller-manager/app/options/nodeipamcontroller.go

    	fs.Int32Var(&o.NodeCIDRMaskSize, "node-cidr-mask-size", o.NodeCIDRMaskSize, "Mask size for node cidr in cluster. Default is 24 for IPv4 and 64 for IPv6.")
    	fs.Int32Var(&o.NodeCIDRMaskSizeIPv4, "node-cidr-mask-size-ipv4", o.NodeCIDRMaskSizeIPv4, "Mask size for IPv4 node cidr in dual-stack cluster. Default is 24.")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 21 06:08:58 UTC 2019
    - 2.6K bytes
    - Viewed (0)
  9. pilot/pkg/networking/core/listener_address.go

    	wildCards = map[model.IPMode][]string{
    		model.IPv4: {WildcardAddress},
    		model.IPv6: {WildcardIPv6Address},
    		model.Dual: {WildcardAddress, WildcardIPv6Address},
    	}
    
    	localHosts = map[model.IPMode][]string{
    		model.IPv4: {LocalhostAddress},
    		model.IPv6: {LocalhostIPv6Address},
    		model.Dual: {LocalhostAddress, LocalhostIPv6Address},
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. cmd/cloud-controller-manager/nodeipamcontroller.go

    	dualstack, _ := netutils.IsDualStackCIDRs(cidrs)
    
    	return cidrs, dualstack, nil
    }
    
    // setNodeCIDRMaskSizes returns the IPv4 and IPv6 node cidr mask sizes to the value provided
    // for --node-cidr-mask-size-ipv4 and --node-cidr-mask-size-ipv6 respectively. If value not provided,
    // then it will return default IPv4 and IPv6 cidr mask sizes.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 14 19:06:22 UTC 2023
    - 8.9K bytes
    - Viewed (0)
Back to top