Searched refs:DNSHeader (Results 1 – 6 of 6) sorted by relevance
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_responder.h | 85 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 …]
|
D | dns_responder.cpp | 326 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/ |
D | resolv_test_utils.h | 143 static const test::DNSHeader kDefaultDnsHeader = {
|
D | resolv_integration_test.cpp | 4721 test::DNSHeader header(kDefaultDnsHeader); in TEST_P()
|
/packages/modules/DnsResolver/ |
D | resolv_unit_test.cpp | 57 test::DNSHeader header; // dns header 99 test::DNSHeader header(kDefaultDnsHeader); in MakeDnsMessage()
|
D | resolv_cache_unit_test.cpp | 82 test::DNSHeader header; in makeAnswer()
|