Home
last modified time | relevance | path

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

/system/netd/resolv/dns_responder/
Ddns_responder.cpp292 std::vector<char> rdata; member
326 rdata.assign(cur, cur + rdlen); in read()
333 buffer_cur = writeIntFields(rdata.size(), buffer_cur, buffer_end); in write()
335 if (buffer_cur + rdata.size() > buffer_end) { in write()
339 return std::copy(rdata.begin(), rdata.end(), buffer_cur); in write()
854 record.rdata.resize(4); in fillAnswerRdata()
855 if (inet_pton(AF_INET, rdatastr.c_str(), record.rdata.data()) != 1) { in fillAnswerRdata()
860 record.rdata.resize(16); in fillAnswerRdata()
861 if (inet_pton(AF_INET6, rdatastr.c_str(), record.rdata.data()) != 1) { in fillAnswerRdata()
868 std::vector<char> rdata; in fillAnswerRdata() local
[all …]
/system/netd/resolv/
Dres_cache.cpp955 const u_char* rdata = ns_rr_rdata(rr); // find the data in answer_getNegativeTTL() local
956 const u_char* edata = rdata + ns_rr_rdlen(rr); // add the len to find the end in answer_getNegativeTTL()
962 len = dn_skipname(rdata, edata); in answer_getNegativeTTL()
964 rdata += len; in answer_getNegativeTTL()
967 len = dn_skipname(rdata, edata); in answer_getNegativeTTL()
969 rdata += len; in answer_getNegativeTTL()
971 if (edata - rdata != 5 * NS_INT32SZ) continue; in answer_getNegativeTTL()
973 rdata += NS_INT32SZ * 4; in answer_getNegativeTTL()
975 ttl = ntohl(*reinterpret_cast<const uint32_t*>(rdata)); in answer_getNegativeTTL()
DDnsProxyListener.cpp188 const uint8_t* rdata = ns_rr_rdata(rr); in extractResNsendAnswers() local
191 memcpy(&sin.sin_addr, rdata, sizeof(sin.sin_addr)); in extractResNsendAnswers()
196 memcpy(&sin6.sin6_addr, rdata, sizeof(sin6.sin6_addr)); in extractResNsendAnswers()
Dresolver_test.cpp1777 const uint8_t* rdata = ns_rr_rdata(rr); in toString() local
1779 if (inet_ntop(ipType, (const char*) rdata, buffer, sizeof(buffer))) { in toString()