diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 21:14:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 21:14:49 +0000 |
commit | 2f230033794fafdf10822568e763d4db68cf6c6b (patch) | |
tree | 39ca5c2325b7b43c9a28ca6d4ad4026a61e7eb97 /dnsparser.hh | |
parent | Adding debian version 1.8.3-3. (diff) | |
download | dnsdist-2f230033794fafdf10822568e763d4db68cf6c6b.tar.xz dnsdist-2f230033794fafdf10822568e763d4db68cf6c6b.zip |
Merging upstream version 1.9.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dnsparser.hh')
-rw-r--r-- | dnsparser.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dnsparser.hh b/dnsparser.hh index 014087e..20ce639 100644 --- a/dnsparser.hh +++ b/dnsparser.hh @@ -192,13 +192,13 @@ struct DNSRecord; class DNSRecordContent { public: - static std::shared_ptr<DNSRecordContent> mastermake(const DNSRecord &dr, PacketReader& pr); - static std::shared_ptr<DNSRecordContent> mastermake(const DNSRecord &dr, PacketReader& pr, uint16_t opcode); - static std::shared_ptr<DNSRecordContent> mastermake(uint16_t qtype, uint16_t qclass, const string& zone); + static std::shared_ptr<DNSRecordContent> make(const DNSRecord& dr, PacketReader& pr); + static std::shared_ptr<DNSRecordContent> make(const DNSRecord& dr, PacketReader& pr, uint16_t opcode); + static std::shared_ptr<DNSRecordContent> make(uint16_t qtype, uint16_t qclass, const string& zone); static string upgradeContent(const DNSName& qname, const QType& qtype, const string& content); virtual std::string getZoneRepresentation(bool noDot=false) const = 0; - virtual ~DNSRecordContent() {} + virtual ~DNSRecordContent() = default; virtual void toPacket(DNSPacketWriter& pw) const = 0; // returns the wire format of the content, possibly including compressed pointers pointing to the owner name (unless canonic or lowerCase are set) string serialize(const DNSName& qname, bool canonic=false, bool lowerCase=false) const |