]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Note that name.isPartOf(name)
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 3 Aug 2020 08:43:14 +0000 (10:43 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 3 Aug 2020 08:43:14 +0000 (10:43 +0200)
pdns/dnsname.hh

index d23be23d908946cba41bbed2027713c4c478622c..222edbaf3810e0f00eb7db35e603f5288f7fdf94 100644 (file)
@@ -85,7 +85,7 @@ public:
   explicit DNSName(const std::string& str) : DNSName(str.c_str(), str.length()) {}; //!< Constructs from a human formatted, escaped presentation
   DNSName(const char* p, int len, int offset, bool uncompress, uint16_t* qtype=nullptr, uint16_t* qclass=nullptr, unsigned int* consumed=nullptr, uint16_t minOffset=0); //!< Construct from a DNS Packet, taking the first question if offset=12. If supplied, consumed is set to the number of bytes consumed from the packet, which will not be equal to the wire length of the resulting name in case of compression.
   
-  bool isPartOf(const DNSName& rhs) const;   //!< Are we part of the rhs name?
+  bool isPartOf(const DNSName& rhs) const;   //!< Are we part of the rhs name? Note that name.isPartOf(name).
   inline bool operator==(const DNSName& rhs) const; //!< DNS-native comparison (case insensitive) - empty compares to empty
   bool operator!=(const DNSName& other) const { return !(*this == other); }