- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for IPv6len (0.1 sec)
-
src/net/ip.go
// The IANA has assigned the FC00::/7 prefix to "Unique Local Unicast". return len(ip) == IPv6len && ip[0]&0xfe == 0xfc } // IsMulticast reports whether ip is a multicast address. func (ip IP) IsMulticast() bool { if ip4 := ip.To4(); ip4 != nil { return ip4[0]&0xf0 == 0xe0 } return len(ip) == IPv6len && ip[0] == 0xff } // IsInterfaceLocalMulticast reports whether ip is
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/ip_test.go
testHookUninstaller.Do(uninstallTestHooks) b.Run("IPv4", func(b *testing.B) { benchmarkIPString(b, IPv4len) }) b.Run("IPv6", func(b *testing.B) { benchmarkIPString(b, IPv6len) }) } func benchmarkIPString(b *testing.B, size int) { b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { for _, tt := range ipStringTests { if tt.in != nil && len(tt.in) == size {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 01:17:29 UTC 2024 - 25.7K bytes - Viewed (0) -
src/crypto/x509/verify.go
}, c.PermittedURIDomains, c.ExcludedURIDomains); err != nil { return err } case nameTypeIP: ip := net.IP(data) if l := len(ip); l != net.IPv4len && l != net.IPv6len { return fmt.Errorf("x509: internal error: IP SAN %x failed to parse", data) } if err := c.checkNameConstraints(&comparisonCount, maxConstraintComparisons, "IP address", ip.String(), ip,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:58:39 UTC 2024 - 35.7K bytes - Viewed (0) -
src/crypto/x509/parser.go
return fmt.Errorf("x509: cannot parse URI %q: invalid domain", uriStr) } } uris = append(uris, uri) case nameTypeIP: switch len(data) { case net.IPv4len, net.IPv6len: ipAddresses = append(ipAddresses, data) default: return errors.New("x509: cannot parse IP address of length " + strconv.Itoa(len(data))) } } return nil }) return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:00:16 UTC 2024 - 38.5K bytes - Viewed (0) -
cmd/kubeadm/app/preflight/checks.go
if err != nil { return nil, []error{errors.Wrapf(err, "unable to get first IP address from the given CIDR (%s)", cidr.String())} } testIPstring := testIP.String() if len(testIP) == net.IPv6len { testIPstring = fmt.Sprintf("[%s]:1234", testIP) } url := fmt.Sprintf("%s://%s/", subnet.Proto, testIPstring) req, err := http.NewRequest("GET", url, nil) if err != nil { return nil, []error{err}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 03 11:20:55 UTC 2024 - 39.5K bytes - Viewed (0)