Home
last modified time | relevance | path

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

/system/netd/resolv/dns_responder/
Ddns_responder.h86 struct QueryKey { struct
90 QueryKey(std::string n, unsigned t) : name(move(n)), type(t) {} in QueryKey() argument
91 bool operator == (const QueryKey& o) const {
94 bool operator < (const QueryKey& o) const {
102 size_t operator() (const QueryKey& key) const { in operator()
160 std::unordered_map<QueryKey, std::string, QueryKeyHash> mappings_
Ddns_responder.cpp551 auto it = mappings_.find(QueryKey(name, type)); in addMapping()
564 auto it = mappings_.find(QueryKey(name, type)); in removeMapping()
818 std::unordered_map<QueryKey, std::string, QueryKeyHash>::const_iterator it; in addAnswerRecords()
819 while ((it = mappings_.find(QueryKey(rname, rtype))) != mappings_.end()) { in addAnswerRecords()