Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 186 for IPV4 (0.1 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/net/addrselect.go

    	// When DA and DB belong to the same address family (both are IPv6 or
    	// both are IPv4 [but see below]): If CommonPrefixLen(Source(DA), DA) >
    	// CommonPrefixLen(Source(DB), DB), then prefer DA.  Similarly, if
    	// CommonPrefixLen(Source(DA), DA) < CommonPrefixLen(Source(DB), DB),
    	// then prefer DB.
    	//
    	// However, applying this rule to IPv4 addresses causes
    	// problems (see issues 13283 and 18518), so limit to IPv6.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 00:24:06 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  8. tools/istio-iptables/pkg/builder/iptables_builder_impl.go

    // AppendVersionedRule is a wrapper around AppendRule that substitutes an ipv4/ipv6 specific value
    // in place in the params. This allows appending a dual-stack rule that has an IP value in it.
    func (rb *IptablesRuleBuilder) AppendVersionedRule(ipv4 string, ipv6 string, command log.Command, chain string, table string, params ...string) {
    	rb.AppendRuleV4(command, chain, table, replaceVersionSpecific(ipv4, params...)...)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 14:29:54 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. pkg/proxy/util/utils.go

    	}
    
    	return v1.IPv6Protocol
    }
    
    // AppendPortIfNeeded appends the given port to IP address unless it is already in
    // "ipv4:port" or "[ipv6]:port" format.
    func AppendPortIfNeeded(addr string, port int32) string {
    	// Return if address is already in "ipv4:port" or "[ipv6]:port" format.
    	if _, _, err := net.SplitHostPort(addr); err == nil {
    		return addr
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 11:57:43 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. pkg/kubelet/sysctl/allowlist_test.go

    		{sysctl: "kernel/shm_rmid_forced"},
    		{sysctl: "net.ipv4.ip_local_port_range"},
    		{sysctl: "kernel.msgmax"},
    		{sysctl: "kernel.sem"},
    		{sysctl: "kernel/sem"},
    	}
    	invalid := []Test{
    		{sysctl: "kernel.shm_rmid_forced", hostIPC: true},
    		{sysctl: "net.ipv4.ip_local_port_range", hostNet: true},
    		{sysctl: "foo"},
    		{sysctl: "net.a.b.c", hostNet: false},
    		{sysctl: "net.ipv4.ip_local_port_range.a.b.c", hostNet: false},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 22:58:54 UTC 2023
    - 3.6K bytes
    - Viewed (0)
Back to top