diff options
| author | 2015-04-27 19:28:00 +0200 | |
|---|---|---|
| committer | 2015-04-27 19:28:00 +0200 | |
| commit | 3d32852e7e459d403179e8f79354e2e52bbc4a52 (patch) | |
| tree | 2f458123c58f9a60b0defcddef15d183374ece2a /include/modules | |
| parent | core_dns Update DNS::Request::name to be the same as in the packet (diff) | |
core_dns Drop incoming packets containing a different question from what we asked
Diffstat (limited to 'include/modules')
| -rw-r--r-- | include/modules/dns.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/modules/dns.h b/include/modules/dns.h index 4da31b805..cfa048184 100644 --- a/include/modules/dns.h +++ b/include/modules/dns.h @@ -92,6 +92,7 @@ namespace DNS 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)); } + bool operator!=(const Question& other) const { return (!(*this == other)); } struct hash { |
