- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 72 for ipAddrs (0.3 sec)
-
tests/fuzz/security_fuzzer.go
certChain, err := fuzzedCertChain(f) if err != nil { return 0 } tlsInfo := credentials.TLSInfo{ State: tls.ConnectionState{VerifiedChains: certChain}, } mockIPAddr := &net.IPAddr{IP: net.IPv4(192, 168, 1, 1)} p := &peer.Peer{Addr: mockIPAddr, AuthInfo: tlsInfo} ctx = peer.NewContext(ctx, p) _, _ = server.CreateCertificate(ctx, request) return 1
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 28 16:41:38 UTC 2024 - 3.2K bytes - Viewed (0) -
src/net/dnsclient_unix.go
} return } // lookup entries from /etc/hosts func goLookupIPFiles(name string) (addrs []IPAddr, canonical string) { addr, canonical := lookupStaticHost(name) for _, haddr := range addr { haddr, zone := splitHostZone(haddr) if ip := ParseIP(haddr); ip != nil { addr := IPAddr{IP: ip, Zone: zone} addrs = append(addrs, addr) } } sortByRFC6724(addrs) return addrs, canonical }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:23:45 UTC 2024 - 24.5K bytes - Viewed (0) -
src/net/lookup_unix.go
if order == hostLookupCgo { return cgoLookupHost(ctx, host) } return r.goLookupHostOrder(ctx, host, order, conf) } func (r *Resolver) lookupIP(ctx context.Context, network, host string) (addrs []IPAddr, err error) { order, conf := systemConf().hostLookupOrder(r, host) if order == hostLookupCgo { return cgoLookupIP(ctx, network, host) } ips, _, err := r.goLookupIPCNAMEOrder(ctx, network, host, order, conf)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 3.3K bytes - Viewed (0) -
src/net/interface_linux.go
// address in /proc/net/igmp in native // endianness. for i := 0; i+1 < len(f[0]); i += 2 { b[i/2], _ = xtoi2(f[0][i:i+2], 0) } i := *(*uint32)(unsafe.Pointer(&b[:4][0])) ifma := &IPAddr{IP: IPv4(byte(i>>24), byte(i>>16), byte(i>>8), byte(i))} ifmat = append(ifmat, ifma) } } } return ifmat } func parseProcNetIGMP6(path string, ifi *Interface) []Addr {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 27 05:42:03 UTC 2022 - 7K bytes - Viewed (0) -
src/net/lookup_plan9.go
for _, a := range addrs { if a == addr { continue loop } } addrs = append(addrs, addr) } return } func (r *Resolver) lookupIP(ctx context.Context, network, host string) (addrs []IPAddr, err error) { if order, conf := systemConf().hostLookupOrder(r, host); order != hostLookupCgo { return r.goLookupIP(ctx, network, host, order, conf) } lits, err := r.lookupHost(ctx, host) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 17:08:38 UTC 2024 - 9.9K bytes - Viewed (0) -
src/net/dial.go
return addrs, err } var ( tcp *TCPAddr udp *UDPAddr ip *IPAddr wildcard bool ) switch hint := hint.(type) { case *TCPAddr: tcp = hint wildcard = tcp.isWildcard() case *UDPAddr: udp = hint wildcard = udp.isWildcard() case *IPAddr: ip = hint wildcard = ip.isWildcard() } naddrs := addrs[:0] for _, addr := range addrs {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 26.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/cidr.go
// cidr('192.168.1.0/24').containsCIDR('192.168.2.0/24') // returns false // cidr('192.168.0.1/24').ip() // returns ipAddr('192.168.0.1') // cidr('192.168.0.1/24').ip().family() // returns '4' // cidr('::1/128').ip() // returns ipAddr('::1') // cidr('::1/128').ip().family() // returns '6' // cidr('192.168.0.0/24').masked() // returns cidr('192.168.0.0/24')
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 12:03:04 UTC 2023 - 8.9K bytes - Viewed (0) -
src/net/interface_test.go
} if ifa.IP.IsLoopback() && prefixLen != 8*IPv6len { // see RFC 4291 return nil, fmt.Errorf("unexpected prefix length: %d/%d for %#v", prefixLen, maxPrefixLen, ifa) } stats.ipv6++ } case *IPAddr: if ifa == nil || ifa.IP == nil || ifa.IP.IsMulticast() { return nil, fmt.Errorf("unexpected value: %#v", ifa) } if len(ifa.IP) != IPv6len {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 9.8K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
throw new UnknownHostException(hostname); } private static UniAddress[] wrapInetAddresses ( InetAddress[] iaddrs ) { UniAddress[] addrs = new UniAddress[iaddrs.length]; for ( int ii = 0; ii < iaddrs.length; ii++ ) { addrs[ ii ] = new UniAddress(iaddrs[ ii ]); } return addrs; }
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sun Aug 14 14:26:22 UTC 2022 - 38.2K bytes - Viewed (0) -
src/net/platform_test.go
} var ip IP var wildcard bool switch addr := addr.(type) { case *TCPAddr: ip = addr.IP wildcard = addr.isWildcard() case *UDPAddr: ip = addr.IP wildcard = addr.isWildcard() case *IPAddr: ip = addr.IP wildcard = addr.isWildcard() } // Test wildcard IP addresses. if wildcard && !testenv.HasExternalNetwork() { return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 4.3K bytes - Viewed (0)