Lines Matching refs:DNSResponder
489 DNSResponder::DNSResponder(std::string listen_address, std::string listen_service, in DNSResponder() function in test::DNSResponder
496 DNSResponder::~DNSResponder() { in ~DNSResponder()
500 void DNSResponder::addMapping(const std::string& name, ns_type type, const std::string& addr) { in addMapping()
505 void DNSResponder::addMappingDnsHeader(const std::string& name, ns_type type, in addMappingDnsHeader()
511 void DNSResponder::addMappingBinaryPacket(const std::vector<uint8_t>& query, in addMappingBinaryPacket()
517 void DNSResponder::removeMapping(const std::string& name, ns_type type) { in removeMapping()
525 void DNSResponder::removeMappingDnsHeader(const std::string& name, ns_type type) { in removeMappingDnsHeader()
533 void DNSResponder::removeMappingBinaryPacket(const std::vector<uint8_t>& query) { in removeMappingBinaryPacket()
544 void DNSResponder::setResponseProbability(double response_probability) { in setResponseProbability()
549 void DNSResponder::setResponseDelayMs(unsigned timeMs) { in setResponseDelayMs()
555 void DNSResponder::setResponseProbability(double response_probability, int protocol) { in setResponseProbability()
568 double DNSResponder::getResponseProbability(int protocol) const { in getResponseProbability()
581 void DNSResponder::setEdns(Edns edns) { in setEdns()
585 void DNSResponder::setTtl(unsigned ttl) { in setTtl()
589 bool DNSResponder::running() const { in running()
593 bool DNSResponder::startServer() { in startServer()
649 handler_thread_ = std::thread(&DNSResponder::requestHandler, this); in startServer()
655 bool DNSResponder::stopServer() { in stopServer()
674 std::vector<DNSResponder::QueryInfo> DNSResponder::queries() const { in queries()
679 std::string DNSResponder::dumpQueries() const { in dumpQueries()
690 void DNSResponder::clearQueries() { in clearQueries()
695 bool DNSResponder::hasOptPseudoRR(DNSHeader* header) const { in hasOptPseudoRR()
704 void DNSResponder::requestHandler() { in requestHandler()
730 bool DNSResponder::handleDNSRequest(const char* buffer, ssize_t len, int protocol, char* response, in handleDNSRequest()
797 bool DNSResponder::addAnswerRecords(const DNSQuestion& question, in addAnswerRecords()
843 bool DNSResponder::fillRdata(const std::string& rdatastr, DNSRecord& record) { in fillRdata()
894 bool DNSResponder::writePacket(const DNSHeader* header, char* response, in writePacket()
904 bool DNSResponder::makeErrorResponse(DNSHeader* header, ns_rcode rcode, char* response, in makeErrorResponse()
914 bool DNSResponder::makeTruncatedResponse(DNSHeader* header, char* response, in makeTruncatedResponse()
927 bool DNSResponder::makeResponse(DNSHeader* header, int protocol, char* response, in makeResponse()
972 bool DNSResponder::makeResponseFromAddressOrHostname(DNSHeader* header, char* response, in makeResponseFromAddressOrHostname()
988 bool DNSResponder::makeResponseFromDnsHeader(DNSHeader* header, char* response, in makeResponseFromDnsHeader()
1034 bool DNSResponder::makeResponseFromBinaryPacket(DNSHeader* header, char* response, in makeResponseFromBinaryPacket()
1072 void DNSResponder::setDeferredResp(bool deferred_resp) { in setDeferredResp()
1080 bool DNSResponder::addFd(int fd, uint32_t events) { in addFd()
1091 void DNSResponder::handleQuery(int protocol) { in handleQuery()
1196 bool DNSResponder::sendToEventFd() { in sendToEventFd()
1205 void DNSResponder::handleEventFd() { in handleEventFd()
1212 android::base::unique_fd DNSResponder::createListeningSocket(int socket_type) { in createListeningSocket()