- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for IsUnspecified (0.24 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
pkg/kubelet/kubelet_node_status.go
} if nodeIP.IsMulticast() { return fmt.Errorf("nodeIP can't be a multicast address") } if nodeIP.IsLinkLocalUnicast() { return fmt.Errorf("nodeIP can't be a link-local unicast address") } if nodeIP.IsUnspecified() { return fmt.Errorf("nodeIP can't be an all zeros address") } addrs, err := net.InterfaceAddrs() if err != nil { return err } for _, addr := range addrs { var ip net.IP
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 31.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go
schema: schemas(stringType, stringType), valid: []string{ `isIP("192.168.0.1")`, `ip.isCanonical("127.0.0.1")`, `ip("192.168.0.1").family() > 0`, `ip("0.0.0.0").isUnspecified()`, `ip("127.0.0.1").isLoopback()`, `ip("224.0.0.1").isLinkLocalMulticast()`, `ip("192.168.0.1").isGlobalUnicast()`, `type(ip("192.168.0.1")) == net.IP`,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 17:14:10 UTC 2024 - 159.9K bytes - Viewed (0) -
pkg/apis/core/validation/validation.go
allErrs := field.ErrorList{} ip := netutils.ParseIPSloppy(ipAddress) if ip == nil { allErrs = append(allErrs, field.Invalid(fldPath, ipAddress, "must be a valid IP address")) return allErrs } if ip.IsUnspecified() { allErrs = append(allErrs, field.Invalid(fldPath, ipAddress, fmt.Sprintf("may not be unspecified (%v)", ipAddress))) } if ip.IsLoopback() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 349.5K bytes - Viewed (0)