Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.h85 struct DNSHeader { struct
168 void addMappingDnsHeader(const std::string& name, ns_type type, const DNSHeader& header);
235 bool hasOptPseudoRR(DNSHeader* header) const;
245 bool generateErrorResponse(DNSHeader* header, ns_rcode rcode, char* response,
251 bool writePacket(const DNSHeader* header, char* response, size_t* response_len) const;
253 bool makeErrorResponse(DNSHeader* header, ns_rcode rcode, char* response,
256 bool makeTruncatedResponse(DNSHeader* header, char* response, size_t* response_len) const;
258 bool makeResponse(DNSHeader* header, int protocol, char* response, size_t* response_len) const;
260 bool makeResponseFromAddressOrHostname(DNSHeader* header, char* response,
262 bool makeResponseFromDnsHeader(DNSHeader* header, char* response, size_t* response_len) const;
[all …]
Ddns_responder.cpp326 const char* DNSHeader::read(const char* buffer, const char* buffer_end) { in read()
379 char* DNSHeader::write(char* buffer, const char* buffer_end) const { in write()
420 bool DNSHeader::write(std::vector<uint8_t>* out) const { in write()
428 std::string DNSHeader::toString() const { in toString()
433 const char* DNSHeader::readHeader(const char* buffer, const char* buffer_end, unsigned* qdcount, in readHeader()
476 const DNSHeader& header) { in addMappingDnsHeader()
665 bool DNSResponder::hasOptPseudoRR(DNSHeader* header) const { in hasOptPseudoRR()
704 DNSHeader header; in handleDNSRequest()
864 bool DNSResponder::writePacket(const DNSHeader* header, char* response, in writePacket()
874 bool DNSResponder::makeErrorResponse(DNSHeader* header, ns_rcode rcode, char* response, in makeErrorResponse()
[all …]
/packages/modules/DnsResolver/tests/
Dresolv_test_utils.h143 static const test::DNSHeader kDefaultDnsHeader = {
Dresolv_integration_test.cpp4721 test::DNSHeader header(kDefaultDnsHeader); in TEST_P()
/packages/modules/DnsResolver/
Dresolv_unit_test.cpp57 test::DNSHeader header; // dns header
99 test::DNSHeader header(kDefaultDnsHeader); in MakeDnsMessage()
Dresolv_cache_unit_test.cpp82 test::DNSHeader header; in makeAnswer()