Home
last modified time | relevance | path

Searched refs:rdata (Results 1 – 11 of 11) sorted by relevance

/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.cpp307 rdata.assign(cur, cur + rdlen); in read()
314 buffer_cur = writeIntFields(rdata.size(), buffer_cur, buffer_end); in write()
316 if (buffer_cur + rdata.size() > buffer_end) { in write()
320 return std::copy(rdata.begin(), rdata.end(), buffer_cur); in write()
845 record.rdata.resize(4); in fillRdata()
846 if (inet_pton(AF_INET, rdatastr.c_str(), record.rdata.data()) != 1) { in fillRdata()
851 record.rdata.resize(16); in fillRdata()
852 if (inet_pton(AF_INET6, rdatastr.c_str(), record.rdata.data()) != 1) { in fillRdata()
860 std::vector<char> rdata; in fillRdata() local
876 rdata.push_back(label.length()); in fillRdata()
[all …]
Ddns_responder.h66 std::vector<char> rdata; member
/packages/modules/DnsResolver/
Dres_cache.cpp728 const uint8_t* rdata = ns_rr_rdata(rr); // find the data in answer_getNegativeTTL() local
729 const uint8_t* edata = rdata + ns_rr_rdlen(rr); // add the len to find the end in answer_getNegativeTTL()
735 len = dn_skipname(rdata, edata); in answer_getNegativeTTL()
737 rdata += len; in answer_getNegativeTTL()
740 len = dn_skipname(rdata, edata); in answer_getNegativeTTL()
742 rdata += len; in answer_getNegativeTTL()
744 if (edata - rdata != 5 * NS_INT32SZ) continue; in answer_getNegativeTTL()
746 rdata += NS_INT32SZ * 4; in answer_getNegativeTTL()
748 ttl = ntohl(*reinterpret_cast<const uint32_t*>(rdata)); in answer_getNegativeTTL()
DDnsProxyListener.cpp163 const uint8_t* rdata = ns_rr_rdata(rr); in extractResNsendAnswers() local
166 memcpy(&sin.sin_addr, rdata, sizeof(sin.sin_addr)); in extractResNsendAnswers()
171 memcpy(&sin6.sin6_addr, rdata, sizeof(sin6.sin6_addr)); in extractResNsendAnswers()
/packages/modules/DnsResolver/tests/
Dresolv_cache_unit_test.cpp255 CacheEntry makeCacheEntry(int op, const char* qname, int qclass, int qtype, const char* rdata, in makeCacheEntry() argument
259 ce.answer = makeAnswer(ce.query, rdata, static_cast<unsigned>(ttl.count())); in makeCacheEntry()
377 std::string rdata; in TEST_F() member
386 std::string name = android::base::StringPrintf("cache.lookup.type.%s", t.rdata.c_str()); in TEST_F()
389 CacheEntry ce = makeCacheEntry(QUERY, name.data(), ns_c_in, t.type, t.rdata.data()); in TEST_F()
Dresolv_unit_test.cpp70 const std::string& rdata, unsigned ttl = kAnswerRecordTtlSec) { in MakeAnswerRecord() argument
77 EXPECT_TRUE(test::DNSResponder::fillRdata(rdata, record)); in MakeAnswerRecord()
82 const std::vector<std::string>& rdata) { in MakeDnsMessage() argument
110 for (const auto& r : rdata) { in MakeDnsMessage()
Dresolv_integration_test.cpp2231 const uint8_t* rdata = ns_rr_rdata(rr); in toString() local
2233 if (inet_ntop(ipType, (const char*)rdata, buffer, sizeof(buffer))) { in toString()
/packages/modules/Connectivity/tests/cts/net/native/dns/
DNativeDnsAsyncTest.cpp69 const uint8_t* rdata = ns_rr_rdata(rr); in extractIpAddressAnswers() local
71 if (inet_ntop(ipType, (const char*) rdata, buffer, sizeof(buffer))) { in extractIpAddressAnswers()
/packages/modules/Connectivity/tests/cts/net/jni/
DNativeMultinetworkJni.cpp113 const uint8_t* rdata = ns_rr_rdata(rr); in extractIpAddressAnswers() local
115 if (inet_ntop(family, (const char*) rdata, buffer, sizeof(buffer)) == NULL) { in extractIpAddressAnswers()
/packages/inputmethods/LatinIME/dictionaries/
Dnb_wordlist.combined.gz
Dro_wordlist.combined.gz