Searched refs:QueryKey (Results 1 – 2 of 2) sorted by relevance
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_responder.h | 213 struct QueryKey { struct 217 QueryKey(std::string n, unsigned t) : name(move(n)), type(t) {} in QueryKey() argument 218 bool operator==(const QueryKey& o) const { return name == o.name && type == o.type; } 219 bool operator<(const QueryKey& o) const { 227 size_t operator()(const QueryKey& key) const { in operator() 334 std::unordered_map<QueryKey, std::string, QueryKeyHash> mappings_ GUARDED_BY(mappings_mutex_); 335 std::unordered_map<QueryKey, DNSHeader, QueryKeyHash> dnsheader_mappings_
|
D | dns_responder.cpp | 809 std::unordered_map<QueryKey, std::string, QueryKeyHash>::const_iterator it; in addAnswerRecords() 810 while ((it = mappings_.find(QueryKey(rname, rtype))) != mappings_.end()) { in addAnswerRecords() 1010 const auto it = dnsheader_mappings_.find(QueryKey(name, qtype)); in makeResponseFromDnsHeader()
|