Home
last modified time | relevance | path

Searched refs:dns (Results 1 – 25 of 139) sorted by relevance

123456

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DRouteSelectorTest.java72 private final FakeDns dns = new FakeDns(); field in RouteSelectorTest
86 dns.addresses(makeFakeAddresses(255, 1)); in singleRoute()
87 assertRoute(routeSelector.next(), address, NO_PROXY, dns.address(0), uriPort); in singleRoute()
88 dns.assertRequests(uriHost); in singleRoute()
103 dns.addresses(makeFakeAddresses(255, 1)); in singleRouteReturnsFailedRoute()
107 assertRoute(routeSelector.next(), address, NO_PROXY, dns.address(0), uriPort); in singleRouteReturnsFailedRoute()
117 Address address = new Address(uriHost, uriPort, dns, socketFactory, null, null, null, in explicitProxyTriesThatProxysAddressesOnly()
122 dns.addresses(makeFakeAddresses(255, 2)); in explicitProxyTriesThatProxysAddressesOnly()
123 assertRoute(routeSelector.next(), address, proxyA, dns.address(0), proxyAPort); in explicitProxyTriesThatProxysAddressesOnly()
124 assertRoute(routeSelector.next(), address, proxyA, dns.address(1), proxyAPort); in explicitProxyTriesThatProxysAddressesOnly()
[all …]
/external/curl/lib/
Dhostip.c265 if((data->set.dns_cache_timeout == -1) || !data->dns.hostcache) in Curl_hostcache_prune()
276 hostcache_prune(data->dns.hostcache, in Curl_hostcache_prune()
297 struct Curl_dns_entry *dns = NULL; in fetch_addr() local
307 dns = Curl_hash_pick(data->dns.hostcache, entry_id, entry_len + 1); in fetch_addr()
310 if(!dns && data->change.wildcard_resolve) { in fetch_addr()
315 dns = Curl_hash_pick(data->dns.hostcache, entry_id, entry_len + 1); in fetch_addr()
318 if(dns && (data->set.dns_cache_timeout != -1)) { in fetch_addr()
325 if(hostcache_timestamp_remove(&user, dns)) { in fetch_addr()
327 dns = NULL; /* the memory deallocation is being handled by the hash */ in fetch_addr()
328 Curl_hash_delete(data->dns.hostcache, entry_id, entry_len + 1); in fetch_addr()
[all …]
Dhostasyn.c73 struct Curl_dns_entry *dns = NULL; in Curl_addrinfo_callback() local
85 dns = Curl_cache_addr(data, ai, in Curl_addrinfo_callback()
91 if(!dns) { in Curl_addrinfo_callback()
102 conn->async.dns = dns; in Curl_addrinfo_callback()
Dsocks.c154 struct Curl_dns_entry *dns; in Curl_SOCKS4() local
158 rc = Curl_resolv(conn, hostname, remote_port, &dns); in Curl_SOCKS4()
165 (void)Curl_resolver_wait_resolv(conn, &dns); in Curl_SOCKS4()
171 if(dns) in Curl_SOCKS4()
172 hp = dns->addr; in Curl_SOCKS4()
194 Curl_resolv_unlock(data, dns); /* not used anymore from now on */ in Curl_SOCKS4()
598 struct Curl_dns_entry *dns; in Curl_SOCKS5() local
600 int rc = Curl_resolv(conn, hostname, remote_port, &dns); in Curl_SOCKS5()
607 code = Curl_resolver_wait_resolv(conn, &dns); in Curl_SOCKS5()
616 if(dns) in Curl_SOCKS5()
[all …]
/external/autotest/client/cros/netprotos/
Dzeroconf.py32 dpkt.dns.DNS.RR.__slots__)
137 mdns = dpkt.dns.DNS(data)
140 dpkt.dns.DNS_A: self._process_A,
141 dpkt.dns.DNS_PTR: self._process_PTR,
142 dpkt.dns.DNS_TXT: self._process_TXT,
143 dpkt.dns.DNS_SRV: self._process_SRV,
150 elif q.type == dpkt.dns.DNS_ANY:
173 if rr.type == dpkt.dns.DNS_A:
175 elif rr.type == dpkt.dns.DNS_PTR:
177 elif rr.type == dpkt.dns.DNS_TXT:
[all …]
Dzeroconf_unittest.py32 q = dpkt.dns.DNS.Q(name=name, type=dpkt.dns.DNS_A)
45 q_srv = dpkt.dns.DNS.Q(name=fq_name, type=dpkt.dns.DNS_SRV)
46 q_txt = dpkt.dns.DNS.Q(name=fq_name, type=dpkt.dns.DNS_TXT)
47 q_ptr = dpkt.dns.DNS.Q(name=name, type=dpkt.dns.DNS_PTR)
56 if resp.type == dpkt.dns.DNS_SRV][0]
113 dpkt.dns.DNS.RR(
114 type = dpkt.dns.DNS_TXT,
115 cls = dpkt.dns.DNS_IN,
119 dpkt.dns.DNS.RR(
120 type = dpkt.dns.DNS_TXT,
[all …]
Dcros_p2p.py108 ts = self._zeroconf.send_request([(self._p2p_domain, dpkt.dns.DNS_PTR)])
115 self._p2p_domain, dpkt.dns.DNS_PTR, ts)
118 queries.append((p2p_peer, dpkt.dns.DNS_ANY))
121 p2p_peer, dpkt.dns.DNS_SRV, ts)
125 queries.append((srvname, dpkt.dns.DNS_ANY))
140 if rrname == self._p2p_domain and rrtype == dpkt.dns.DNS_PTR:
142 queries.append((ptrname, dpkt.dns.DNS_ANY))
157 self._p2p_domain, dpkt.dns.DNS_PTR, timestamp)
161 p2p_peer, dpkt.dns.DNS_SRV, timestamp)
166 srvname, dpkt.dns.DNS_A, timestamp)
[all …]
/external/libevent/test/
Dregress_dns.c200 struct evdns_base *dns = evdns_base_new(base, 1/* init name servers */); in dns_resolve_reverse() local
204 tt_assert(dns); in dns_resolve_reverse()
209 dns, &in, 0, dns_gethostbyname_cb, base); in dns_resolve_reverse()
217 if (dns) in dns_resolve_reverse()
218 evdns_base_free(dns, 0); in dns_resolve_reverse()
537 struct evdns_base *dns = NULL; in dns_search_test_impl() local
552 dns = evdns_base_new(base, 0); in dns_search_test_impl()
553 tt_assert(!evdns_base_nameserver_ip_add(dns, buf)); in dns_search_test_impl()
555 evdns_base_search_add(dns, "a.example.com"); in dns_search_test_impl()
556 evdns_base_search_add(dns, "b.example.com"); in dns_search_test_impl()
[all …]
/external/mdnsresponder/Clients/
DMakefile29 TARGETS = build/dns-sd build/dns-sd64
32 TARGETS = build/dns-sd
44 build/dns-sd: build dns-sd.c ClientCommon.c
47 build/dns-sd64: build dns-sd.c ClientCommon.c
/external/grpc-grpc/test/core/client_channel/resolvers/
Ddns_resolver_test.cc68 grpc_core::ResolverFactory* dns = in main() local
71 test_succeeds(dns, "dns:10.2.1.1"); in main()
72 test_succeeds(dns, "dns:10.2.1.1:1234"); in main()
73 test_succeeds(dns, "dns:www.google.com"); in main()
74 test_succeeds(dns, "dns:///www.google.com"); in main()
76 test_succeeds(dns, "dns://8.8.8.8/8.8.8.8:8888"); in main()
78 test_fails(dns, "dns://8.8.8.8/8.8.8.8:8888"); in main()
/external/curl/tests/unit/
Dunit1607.c129 struct Curl_dns_entry *dns; variable
135 easy->dns.hostcache = hostcache;
136 easy->dns.hostcachetype = HCACHE_GLOBAL;
150 dns = Curl_hash_pick(easy->dns.hostcache, entry_id, strlen(entry_id) + 1);
154 addr = dns ? dns->addr : NULL;
206 if(dns->timestamp != 0) {
217 Curl_hostcache_clean(easy, easy->dns.hostcache);
Dunit1609.c127 easy->dns.hostcache = hostcache;
128 easy->dns.hostcachetype = HCACHE_GLOBAL;
134 struct Curl_dns_entry *dns; variable
152 dns = Curl_hash_pick(easy->dns.hostcache, entry_id, strlen(entry_id) + 1);
156 addr = dns ? dns->addr : NULL;
216 Curl_hostcache_clean(easy, easy->dns.hostcache);
/external/curl/tests/data/
Dtest50664 HTTP with shared cookie list (and dns cache)
118 lock: dns [Pigs in space]: 18
119 unlock: dns [Pigs in space]: 19
120 lock: dns [Pigs in space]: 20
121 unlock: dns [Pigs in space]: 21
131 lock: dns [Pigs in space]: 30
132 unlock: dns [Pigs in space]: 31
133 lock: dns [Pigs in space]: 32
134 unlock: dns [Pigs in space]: 33
145 lock: dns [Pigs in space]: 40
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DAddress.java40 final Dns dns; field in Address
51 public Address(String uriHost, int uriPort, Dns dns, SocketFactory socketFactory, in Address() argument
61 if (dns == null) throw new IllegalArgumentException("dns == null"); in Address()
62 this.dns = dns; in Address()
116 return dns; in getDns()
176 && this.dns.equals(that.dns) in equals()
192 result = 31 * result + dns.hashCode(); in hashCode()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DAddress.java42 final Dns dns; field in Address
53 public Address(String uriHost, int uriPort, Dns dns, SocketFactory socketFactory, in Address() argument
63 if (dns == null) throw new IllegalArgumentException("dns == null"); in Address()
64 this.dns = dns; in Address()
118 return dns; in getDns()
178 && this.dns.equals(that.dns) in equals()
194 result = 31 * result + dns.hashCode(); in hashCode()
/external/grpc-grpc/test/cpp/naming/utils/
Ddns_server.py34 import twisted.names.dns
36 from twisted.names import client, server, common, authority, dns
68 _push_record(name, dns.Record_TXT(*txt_data_list, ttl=r_ttl))
83 _push_record(record_full_name, dns.Record_A(r_data, ttl=r_ttl))
85 _push_record(record_full_name, dns.Record_AAAA(r_data, ttl=r_ttl))
93 _push_record(record_full_name, dns.Record_SRV(p, w, port, target_full_name, ttl=r_ttl))
97 …_push_record(_SERVER_HEALTH_CHECK_RECORD_NAME, dns.Record_A(_SERVER_HEALTH_CHECK_RECORD_DATA, ttl=…
98 soa_record = dns.Record_SOA(mname = common_zone_name)
107 dns_proto = twisted.names.dns.DNSDatagramProtocol(server)
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/provider/
DPKIXNameConstraintValidator.java51 ASN1Sequence dns, in withinDNSubtree() argument
59 if (subtree.size() > dns.size()) in withinDNSubtree()
66 if (!subtree.getObjectAt(j).equals(dns.getObjectAt(j))) in withinDNSubtree()
75 public void checkPermittedDN(ASN1Sequence dns) in checkPermittedDN() argument
78 checkPermittedDN(permittedSubtreesDN, dns); in checkPermittedDN()
81 public void checkExcludedDN(ASN1Sequence dns) in checkExcludedDN() argument
84 checkExcludedDN(excludedSubtreesDN, dns); in checkExcludedDN()
87 private void checkPermittedDN(Set permitted, ASN1Sequence dns) in checkPermittedDN() argument
95 if (permitted.isEmpty() && dns.size() == 0) in checkPermittedDN()
105 if (withinDNSubtree(dns, subtree)) in checkPermittedDN()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DPKIXNameConstraintValidator.java47 ASN1Sequence dns, in withinDNSubtree() argument
55 if (subtree.size() > dns.size()) in withinDNSubtree()
62 if (!subtree.getObjectAt(j).equals(dns.getObjectAt(j))) in withinDNSubtree()
71 public void checkPermittedDN(ASN1Sequence dns) in checkPermittedDN() argument
74 checkPermittedDN(permittedSubtreesDN, dns); in checkPermittedDN()
77 public void checkExcludedDN(ASN1Sequence dns) in checkExcludedDN() argument
80 checkExcludedDN(excludedSubtreesDN, dns); in checkExcludedDN()
83 private void checkPermittedDN(Set permitted, ASN1Sequence dns) in checkPermittedDN() argument
91 if (permitted.isEmpty() && dns.size() == 0) in checkPermittedDN()
101 if (withinDNSubtree(dns, subtree)) in checkPermittedDN()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
DPKIXNameConstraintValidator.java367 private void checkPermittedDN(X500Name dns) in checkPermittedDN() argument
370 checkPermittedDN(permittedSubtreesDN, ASN1Sequence.getInstance(dns.toASN1Primitive())); in checkPermittedDN()
373 private void checkExcludedDN(X500Name dns) in checkExcludedDN() argument
376 checkExcludedDN(excludedSubtreesDN, ASN1Sequence.getInstance(dns)); in checkExcludedDN()
380 ASN1Sequence dns, in withinDNSubtree() argument
388 if (subtree.size() > dns.size()) in withinDNSubtree()
395 if (!subtree.getObjectAt(j).equals(dns.getObjectAt(j))) in withinDNSubtree()
404 private void checkPermittedDN(Set permitted, ASN1Sequence dns) in checkPermittedDN() argument
412 if (permitted.isEmpty() && dns.size() == 0) in checkPermittedDN()
422 if (withinDNSubtree(dns, subtree)) in checkPermittedDN()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x509/
DPKIXNameConstraintValidator.java371 private void checkPermittedDN(X500Name dns) in checkPermittedDN() argument
374 checkPermittedDN(permittedSubtreesDN, ASN1Sequence.getInstance(dns.toASN1Primitive())); in checkPermittedDN()
377 private void checkExcludedDN(X500Name dns) in checkExcludedDN() argument
380 checkExcludedDN(excludedSubtreesDN, ASN1Sequence.getInstance(dns)); in checkExcludedDN()
384 ASN1Sequence dns, in withinDNSubtree() argument
392 if (subtree.size() > dns.size()) in withinDNSubtree()
399 if (!subtree.getObjectAt(j).equals(dns.getObjectAt(j))) in withinDNSubtree()
408 private void checkPermittedDN(Set permitted, ASN1Sequence dns) in checkPermittedDN() argument
416 if (permitted.isEmpty() && dns.size() == 0) in checkPermittedDN()
426 if (withinDNSubtree(dns, subtree)) in checkPermittedDN()
[all …]
/external/okhttp/android/src/main/java/com/android/okhttp/internalandroidapi/
DHttpURLConnectionFactory.java58 private com.squareup.okhttp.Dns dns; field in HttpURLConnectionFactory
75 public void setDns(Dns dns) { in setDns() argument
76 Objects.requireNonNull(dns); in setDns()
77 this.dns = new DnsAdapter(dns); in setDns()
136 if (dns != null) { in internalOpenConnection()
137 client.setDns(dns); in internalOpenConnection()
/external/okhttp/repackaged/android/src/main/java/com/android/okhttp/internalandroidapi/
DHttpURLConnectionFactory.java60 private com.android.okhttp.Dns dns; field in HttpURLConnectionFactory
77 public void setDns(Dns dns) { in setDns() argument
78 Objects.requireNonNull(dns); in setDns()
79 this.dns = new DnsAdapter(dns); in setDns()
138 if (dns != null) { in internalOpenConnection()
139 client.setDns(dns); in internalOpenConnection()
/external/ltp/testcases/network/stress/dns/
D00_Descriptions.txt1 dns-stress01
2 Verify the dns server or the kernel is not down after handling
5 dns-stress02
6 Verify the dns server or the kernel is not down after handling
/external/u-boot/doc/
DREADME.dns19 CONFIG_CMD_DNS - controls if the 'dns' command is compiled in. If it is, it
20 will send name lookups to the dns server (env var 'dnsip')
28 bfin> dns www.google.com
31 By default, dns does nothing except print the IP number on
33 useless. Adding a third argument to the dns command will
40 bfin> dns www.google.com googleip
53 bfin> dns pool.ntp.org ntpserverip
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DAddressTest.java29 private Dns dns = Dns.SYSTEM; field in AddressTest
37 Address a = new Address("square.com", 80, dns, socketFactory, null, null, null, in equalsAndHashcode()
39 Address b = new Address("square.com", 80, dns, socketFactory, null, null, null, in equalsAndHashcode()
46 Address a = new Address("square.com", 80, dns, socketFactory, null, null, null, in differentProxySelectorsAreDifferent()
48 Address b = new Address("square.com", 80, dns, socketFactory, null, null, null, in differentProxySelectorsAreDifferent()

123456