Home
last modified time | relevance | path

Searched refs:QueryKey (Results 1 – 2 of 2) sorted by relevance

/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.h209 struct QueryKey { struct
213 QueryKey(std::string n, unsigned t) : name(move(n)), type(t) {} in QueryKey() function
214 bool operator==(const QueryKey& o) const { return name == o.name && type == o.type; }
215 bool operator<(const QueryKey& o) const {
223 size_t operator()(const QueryKey& key) const { in operator()
330 std::unordered_map<QueryKey, std::string, QueryKeyHash> mappings_ GUARDED_BY(mappings_mutex_);
331 std::unordered_map<QueryKey, DNSHeader, QueryKeyHash> dnsheader_mappings_
Ddns_responder.cpp779 std::unordered_map<QueryKey, std::string, QueryKeyHash>::const_iterator it; in addAnswerRecords()
780 while ((it = mappings_.find(QueryKey(rname, rtype))) != mappings_.end()) { in addAnswerRecords()
980 const auto it = dnsheader_mappings_.find(QueryKey(name, qtype)); in makeResponseFromDnsHeader()