summaryrefslogtreecommitdiff
path: root/Userland/Services/LookupServer/DNSAnswer.cpp
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-05-07 23:58:46 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-10 17:26:17 +0200
commit6e70888315f592aee793d9b64207b48142accb44 (patch)
treed995e6c981fcd6ee95ba4609b70046bf826ca295 /Userland/Services/LookupServer/DNSAnswer.cpp
parent233a9554a5abfcd485322fc5f95c531ca3f13bcc (diff)
downloadserenity-6e70888315f592aee793d9b64207b48142accb44.zip
LookupServer: Split mDNS flags into separate field
Diffstat (limited to 'Userland/Services/LookupServer/DNSAnswer.cpp')
-rw-r--r--Userland/Services/LookupServer/DNSAnswer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Services/LookupServer/DNSAnswer.cpp b/Userland/Services/LookupServer/DNSAnswer.cpp
index d089d04732..167361ac3e 100644
--- a/Userland/Services/LookupServer/DNSAnswer.cpp
+++ b/Userland/Services/LookupServer/DNSAnswer.cpp
@@ -9,12 +9,13 @@
namespace LookupServer {
-DNSAnswer::DNSAnswer(const DNSName& name, u16 type, u16 class_code, u32 ttl, const String& record_data)
+DNSAnswer::DNSAnswer(const DNSName& name, u16 type, u16 class_code, u32 ttl, const String& record_data, bool mdns_cache_flush)
: m_name(name)
, m_type(type)
, m_class_code(class_code)
, m_ttl(ttl)
, m_record_data(record_data)
+ , m_mdns_cache_flush(mdns_cache_flush)
{
auto now = time(nullptr);
m_expiration_time = now + m_ttl;