Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for IsUnspecified (0.43 sec)

  1. src/net/netip/inlining_test.go

    	})
    	wantInlinable := []string{
    		"(*uint128).halves",
    		"Addr.BitLen",
    		"Addr.hasZone",
    		"Addr.Is4",
    		"Addr.Is4In6",
    		"Addr.Is6",
    		"Addr.IsInterfaceLocalMulticast",
    		"Addr.IsValid",
    		"Addr.IsUnspecified",
    		"Addr.Less",
    		"Addr.Unmap",
    		"Addr.Zone",
    		"Addr.v4",
    		"Addr.v6",
    		"Addr.v6u16",
    		"Addr.withoutZone",
    		"AddrPortFrom",
    		"AddrPort.Addr",
    		"AddrPort.Port",
    		"AddrPort.IsValid",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. src/net/ip.go

    	IPv6linklocalallrouters    = IP{0xff, 0x02, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x02}
    )
    
    // IsUnspecified reports whether ip is an unspecified address, either
    // the IPv4 address "0.0.0.0" or the IPv6 address "::".
    func (ip IP) IsUnspecified() bool {
    	return ip.Equal(IPv4zero) || ip.Equal(IPv6unspecified)
    }
    
    // IsLoopback reports whether ip is a loopback address.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 03:13:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/options/serving.go

    			CertDirectory: "apiserver.local.config/certificates",
    		},
    	}
    }
    
    func (s *SecureServingOptions) DefaultExternalAddress() (net.IP, error) {
    	if s.ExternalAddress != nil && !s.ExternalAddress.IsUnspecified() {
    		return s.ExternalAddress, nil
    	}
    	return utilnet.ResolveBindAddress(s.BindAddress)
    }
    
    func (s *SecureServingOptions) Validate() []error {
    	if s == nil {
    		return nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 13:08:18 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/library/cost.go

    			// So we double the cost of parsing the string.
    			cost := uint64(math.Ceil(float64(actualSize(args[0])) * 2 * common.StringTraversalCostFactor))
    			return &cost
    		}
    	case "masked", "prefixLength", "family", "isUnspecified", "isLoopback", "isLinkLocalMulticast", "isLinkLocalUnicast":
    		// IP and CIDR accessors are nominal cost.
    		cost := uint64(1)
    		return &cost
    	case "containsIP":
    		if len(args) >= 2 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  5. src/net/lookup_plan9.go

    	}
    	return query(ctx, netdir+"/cs", net+"!"+host+"!"+service, 128)
    }
    
    func queryCS1(ctx context.Context, net string, ip IP, port int) (clone, dest string, err error) {
    	ips := "*"
    	if len(ip) != 0 && !ip.IsUnspecified() {
    		ips = ip.String()
    	}
    	lines, err := queryCS(ctx, net, ips, itoa.Itoa(port))
    	if err != nil {
    		return
    	}
    	f := getFields(lines[0])
    	if len(f) < 2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:08:38 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. pilot/cmd/pilot-agent/app/cmd.go

    			if !okay {
    				continue
    			}
    			unwrapAddr := ipAddr.Unmap()
    			if !unwrapAddr.IsValid() || unwrapAddr.IsLoopback() || unwrapAddr.IsLinkLocalUnicast() || unwrapAddr.IsLinkLocalMulticast() || unwrapAddr.IsUnspecified() {
    				continue
    			}
    
    			// Add to map
    			excludeAddrs.Insert(unwrapAddr.String())
    		}
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  7. pkg/kubelet/nodestatus/setters.go

    	isPreferredIPFamily := func(ip net.IP) bool { return (ip.To4() != nil) == preferIPv4 }
    	nodeIPSpecified := nodeIP != nil && !nodeIP.IsUnspecified()
    
    	if len(nodeIPs) > 1 {
    		secondaryNodeIP = nodeIPs[1]
    	}
    	secondaryNodeIPSpecified := secondaryNodeIP != nil && !secondaryNodeIP.IsUnspecified()
    
    	return func(ctx context.Context, node *v1.Node) error {
    		if nodeIPSpecified {
    			if err := validateNodeIPFunc(nodeIP); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 12:12:04 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  8. src/net/netip/netip_test.go

    			private := tt.ip.IsPrivate()
    			if private != tt.private {
    				t.Errorf("IsPrivate(%v) = %v; want %v", tt.ip, private, tt.private)
    			}
    
    			unspecified := tt.ip.IsUnspecified()
    			if unspecified != tt.unspecified {
    				t.Errorf("IsUnspecified(%v) = %v; want %v", tt.ip, unspecified, tt.unspecified)
    			}
    		})
    	}
    }
    
    func TestAddrWellKnown(t *testing.T) {
    	tests := []struct {
    		name string
    		ip   Addr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  9. src/net/netip/netip.go

    		// subnet.
    		return ip.v6(0)&0xfe == 0xfc
    	}
    
    	return false // zero value
    }
    
    // IsUnspecified reports whether ip is an unspecified address, either the IPv4
    // address "0.0.0.0" or the IPv6 address "::".
    //
    // Note that the zero [Addr] is not an unspecified address.
    func (ip Addr) IsUnspecified() bool {
    	return ip == IPv4Unspecified() || ip == IPv6Unspecified()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  10. src/net/tcpsock.go

    		return JoinHostPort(ip+"%"+a.Zone, itoa.Itoa(a.Port))
    	}
    	return JoinHostPort(ip, itoa.Itoa(a.Port))
    }
    
    func (a *TCPAddr) isWildcard() bool {
    	if a == nil || a.IP == nil {
    		return true
    	}
    	return a.IP.IsUnspecified()
    }
    
    func (a *TCPAddr) opAddr() Addr {
    	if a == nil {
    		return nil
    	}
    	return a
    }
    
    // ResolveTCPAddr returns an address of TCP end point.
    //
    // The network must be a TCP network name.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 03:10:07 UTC 2024
    - 13.7K bytes
    - Viewed (0)
Back to top