Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 72 for ipAddrs (0.25 sec)

  1. pkg/proxy/util/utils_test.go

    	}{
    		{
    			"Empty",
    			func(ip net.IP) bool { return false },
    			nil,
    			nil,
    		},
    		{
    			"Reject IPAddr x 2",
    			func(ip net.IP) bool { return false },
    			[]net.Addr{
    				mustParseIPAddr("8.8.8.8"),
    				mustParseIPAddr("1000::"),
    			},
    			nil,
    		},
    		{
    			"Accept IPAddr x 2",
    			func(ip net.IP) bool { return true },
    			[]net.Addr{
    				mustParseIPAddr("8.8.8.8"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 11:57:43 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  2. pkg/proxy/util/utils.go

    func AddressSet(isValid func(ip net.IP) bool, addrs []net.Addr) sets.Set[string] {
    	ips := sets.New[string]()
    	for _, a := range addrs {
    		var ip net.IP
    		switch v := a.(type) {
    		case *net.IPAddr:
    			ip = v.IP
    		case *net.IPNet:
    			ip = v.IP
    		default:
    			continue
    		}
    		if isValid(ip) {
    			ips.Insert(ip.String())
    		}
    	}
    	return ips
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 11:57:43 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/net/nettest/nettest.go

    func hasRoutableIP(network string, ifi *net.Interface) (net.IP, bool) {
    	ifat, err := ifi.Addrs()
    	if err != nil {
    		return nil, false
    	}
    	for _, ifa := range ifat {
    		switch ifa := ifa.(type) {
    		case *net.IPAddr:
    			if ip, ok := routableIP(network, ifa.IP); ok {
    				return ip, true
    			}
    		case *net.IPNet:
    			if ip, ok := routableIP(network, ifa.IP); ok {
    				return ip, true
    			}
    		}
    	}
    	return nil, false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. src/net/dial_test.go

    			}
    			wg.Wait()
    		})
    	}
    }
    
    func lookupSlowFast(ctx context.Context, fn func(context.Context, string, string) ([]IPAddr, error), network, host string) ([]IPAddr, error) {
    	switch host {
    	case "slow6loopback4":
    		// Returns a slow IPv6 address, and a local IPv4 address.
    		return []IPAddr{
    			{IP: ParseIP(slowDst6)},
    			{IP: ParseIP("127.0.0.1")},
    		}, nil
    	default:
    		return fn(ctx, network, host)
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/apis/kubeadm/validation/validation.go

    		}
    	}
    	return allErrs
    }
    
    // ValidateIPFromString validates ip address
    func ValidateIPFromString(ipaddr string, fldPath *field.Path) field.ErrorList {
    	allErrs := field.ErrorList{}
    	if netutils.ParseIPSloppy(ipaddr) == nil {
    		allErrs = append(allErrs, field.Invalid(fldPath, ipaddr, "ip address is not valid"))
    	}
    	return allErrs
    }
    
    // ValidatePort validates port numbers
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  6. cmd/net.go

    		if runtime.GOOS == "windows" && interf.Flags&net.FlagUp == 0 {
    			continue
    		}
    
    		for _, addr := range addrs {
    			var ip net.IP
    			switch v := addr.(type) {
    			case *net.IPNet:
    				ip = v.IP
    			case *net.IPAddr:
    				ip = v.IP
    			}
    
    			ipList = append(ipList, ip)
    		}
    	}
    
    	return ipList
    }
    
    // mustGetLocalIP4 returns IPv4 addresses of localhost.  It panics on error.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  7. internal/http/listener_test.go

    		t.Fatalf("%s.  Unable to get IP addresses of this host.", err)
    	}
    
    	for _, addr := range addrs {
    		var ip net.IP
    		switch v := addr.(type) {
    		case *net.IPNet:
    			ip = v.IP
    		case *net.IPAddr:
    			ip = v.IP
    		}
    
    		if ip.To4() != nil {
    			localIP4.Add(ip.String())
    		}
    	}
    
    	// Filter ipList by IPs those do not start with '127.'.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/cel/library/ip.go

    // IPv4-mapped IPv6 addresses (e.g. ::ffff:1.2.3.4) are not allowed.
    // IP addresses with zones (e.g. fe80::1%eth0) are not allowed.
    // Leading zeros in IPv4 address octets are not allowed.
    //
    //	ip(<string>) <IPAddr>
    //
    // Examples:
    //
    //	ip('127.0.0.1') // returns an IPv4 address
    //	ip('::1') // returns an IPv6 address
    //	ip('127.0.0.256') // error
    //	ip(':::1') // error
    //
    // isIP
    //
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 11:02:34 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  9. pkg/dns/client/dns.go

    		}
    		if len(v6) > 0 {
    			addresses = append(addresses, net.JoinHostPort("::1", port))
    		}
    	}
    	for _, ipAddr := range addresses {
    		for _, proto := range []string{"udp", "tcp"} {
    			proxy, err := newDNSProxy(proto, ipAddr, h)
    			if err != nil {
    				return nil, err
    			}
    			h.dnsProxies = append(h.dnsProxies, proxy)
    
    		}
    	}
    
    	return h, nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 16:17:34 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  10. api/go1.7.txt

    pkg net/http/httptrace, type ClientTrace struct, WroteRequest func(WroteRequestInfo)
    pkg net/http/httptrace, type DNSDoneInfo struct
    pkg net/http/httptrace, type DNSDoneInfo struct, Addrs []net.IPAddr
    pkg net/http/httptrace, type DNSDoneInfo struct, Coalesced bool
    pkg net/http/httptrace, type DNSDoneInfo struct, Err error
    pkg net/http/httptrace, type DNSStartInfo struct
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 28 15:08:11 UTC 2016
    - 13.6K bytes
    - Viewed (0)
Back to top