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