diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-04-21 15:14:29 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-04-21 15:14:29 +0200 |
commit | a28f095db832e44aad66bfd73bfd8176a97c6de2 (patch) | |
tree | ff75b5c3f73576e55c828db9869d63ae04d2b275 /include/modules | |
parent | 402779cc65f8e665c160a6902d585d7713e9b0a3 (diff) |
core_dns Don't store query class code in Question
Diffstat (limited to 'include/modules')
-rw-r--r-- | include/modules/dns.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/modules/dns.h b/include/modules/dns.h index 04e3df16c..f4071e399 100644 --- a/include/modules/dns.h +++ b/include/modules/dns.h @@ -88,11 +88,10 @@ namespace DNS { std::string name; QueryType type; - unsigned short qclass; - Question() : type(QUERY_NONE), qclass(0) { } - Question(const std::string& n, QueryType t, unsigned short c = 1) : name(n), type(t), qclass(c) { } - inline bool operator==(const Question& other) const { return name == other.name && type == other.type && qclass == other.qclass; } + Question() : type(QUERY_NONE) { } + Question(const std::string& n, QueryType t) : name(n), type(t) { } + bool operator==(const Question& other) const { return ((name == other.name) && (type == other.type)); } struct hash { @@ -109,7 +108,7 @@ namespace DNS std::string rdata; time_t created; - ResourceRecord(const std::string& n, QueryType t, unsigned short c = 1) : Question(n, t, c), ttl(0), created(ServerInstance->Time()) { } + ResourceRecord(const std::string& n, QueryType t) : Question(n, t), ttl(0), created(ServerInstance->Time()) { } ResourceRecord(const Question& question) : Question(question), ttl(0), created(ServerInstance->Time()) { } }; |