Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.cpp277 rdata.assign(cur, cur + rdlen); in read()
284 buffer_cur = writeIntFields(rdata.size(), buffer_cur, buffer_end); in write()
286 if (buffer_cur + rdata.size() > buffer_end) { in write()
290 return std::copy(rdata.begin(), rdata.end(), buffer_cur); in write()
815 record.rdata.resize(4); in fillRdata()
816 if (inet_pton(AF_INET, rdatastr.c_str(), record.rdata.data()) != 1) { in fillRdata()
821 record.rdata.resize(16); in fillRdata()
822 if (inet_pton(AF_INET6, rdatastr.c_str(), record.rdata.data()) != 1) { in fillRdata()
830 std::vector<char> rdata; in fillRdata() local
846 rdata.push_back(label.length()); in fillRdata()
[all …]
Ddns_responder.h66 std::vector<char> rdata; member
/packages/modules/DnsResolver/
Dres_cache.cpp710 const uint8_t* rdata = ns_rr_rdata(rr); // find the data in answer_getNegativeTTL() local
711 const uint8_t* edata = rdata + ns_rr_rdlen(rr); // add the len to find the end in answer_getNegativeTTL()
717 len = dn_skipname(rdata, edata); in answer_getNegativeTTL()
719 rdata += len; in answer_getNegativeTTL()
722 len = dn_skipname(rdata, edata); in answer_getNegativeTTL()
724 rdata += len; in answer_getNegativeTTL()
726 if (edata - rdata != 5 * NS_INT32SZ) continue; in answer_getNegativeTTL()
728 rdata += NS_INT32SZ * 4; in answer_getNegativeTTL()
730 ttl = ntohl(*reinterpret_cast<const uint32_t*>(rdata)); in answer_getNegativeTTL()
Dresolv_cache_unit_test.cpp256 CacheEntry makeCacheEntry(int op, const char* qname, int qclass, int qtype, const char* rdata, in makeCacheEntry() argument
260 ce.answer = makeAnswer(ce.query, rdata, static_cast<unsigned>(ttl.count())); in makeCacheEntry()
378 std::string rdata; in TEST_F() member
387 std::string name = android::base::StringPrintf("cache.lookup.type.%s", t.rdata.c_str()); in TEST_F()
390 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()
DDnsProxyListener.cpp180 const uint8_t* rdata = ns_rr_rdata(rr); in extractResNsendAnswers() local
183 memcpy(&sin.sin_addr, rdata, sizeof(sin.sin_addr)); in extractResNsendAnswers()
188 memcpy(&sin6.sin6_addr, rdata, sizeof(sin6.sin6_addr)); in extractResNsendAnswers()
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp1972 const uint8_t* rdata = ns_rr_rdata(rr); in toString() local
1974 if (inet_ntop(ipType, (const char*)rdata, buffer, sizeof(buffer))) { in toString()
/packages/inputmethods/LatinIME/dictionaries/
Dnb_wordlist.combined.gz1dictionary=main:nb,locale=nb,description=Norsk bokmål,date=1393228136 ...
Dro_wordlist.combined.gz1dictionary=main:ro,locale=ro,description=Română,date=1412325511, ...