Home
last modified time | relevance | path

Searched refs:rdatastr (Results 1 – 2 of 2) sorted by relevance

/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.cpp813 bool DNSResponder::fillRdata(const std::string& rdatastr, DNSRecord& record) { in fillRdata() argument
816 if (inet_pton(AF_INET, rdatastr.c_str(), record.rdata.data()) != 1) { in fillRdata()
817 LOG(ERROR) << "inet_pton(AF_INET, " << rdatastr << ") failed"; in fillRdata()
822 if (inet_pton(AF_INET6, rdatastr.c_str(), record.rdata.data()) != 1) { in fillRdata()
823 LOG(ERROR) << "inet_pton(AF_INET6, " << rdatastr << ") failed"; in fillRdata()
829 std::string name = rdatastr; in fillRdata()
Ddns_responder.h191 static bool fillRdata(const std::string& rdatastr, DNSRecord& record);