Home
last modified time | relevance | path

Searched refs:DNSHeader (Results 1 – 7 of 7) sorted by relevance

/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.h85 struct DNSHeader { struct
172 void addMappingDnsHeader(const std::string& name, ns_type type, const DNSHeader& header);
250 bool hasOptPseudoRR(DNSHeader* header) const;
260 bool generateErrorResponse(DNSHeader* header, ns_rcode rcode, char* response,
266 bool writePacket(const DNSHeader* header, char* response, size_t* response_len) const;
268 bool makeErrorResponse(DNSHeader* header, ns_rcode rcode, char* response,
271 bool makeTruncatedResponse(DNSHeader* header, char* response, size_t* response_len) const;
273 bool makeResponse(DNSHeader* header, int protocol, char* response, size_t* response_len) const;
275 bool makeResponseFromAddressOrHostname(DNSHeader* header, char* response,
277 bool makeResponseFromDnsHeader(DNSHeader* header, char* response, size_t* response_len) const;
[all …]
Ddns_responder.cpp356 const char* DNSHeader::read(const char* buffer, const char* buffer_end) { in read()
409 char* DNSHeader::write(char* buffer, const char* buffer_end) const { in write()
450 bool DNSHeader::write(std::vector<uint8_t>* out) const { in write()
458 std::string DNSHeader::toString() const { in toString()
463 const char* DNSHeader::readHeader(const char* buffer, const char* buffer_end, unsigned* qdcount, in readHeader()
506 const DNSHeader& header) { in addMappingDnsHeader()
695 bool DNSResponder::hasOptPseudoRR(DNSHeader* header) const { in hasOptPseudoRR()
734 DNSHeader header; in handleDNSRequest()
894 bool DNSResponder::writePacket(const DNSHeader* header, char* response, in writePacket()
904 bool DNSResponder::makeErrorResponse(DNSHeader* header, ns_rcode rcode, char* response, in makeErrorResponse()
[all …]
Ddns_tls_frontend.cpp266 DNSHeader dnsHdr; in handleRequests()
/packages/modules/DnsResolver/tests/
Dresolv_test_utils.h144 static const test::DNSHeader kDefaultDnsHeader = {
Dresolv_unit_test.cpp57 test::DNSHeader header; // dns header
99 test::DNSHeader header(kDefaultDnsHeader); in MakeDnsMessage()
Dresolv_cache_unit_test.cpp81 test::DNSHeader header; in makeAnswer()
Dresolv_integration_test.cpp5529 test::DNSHeader header(kDefaultDnsHeader); in TEST_P()