From 4f9597f566cf229984a7b4e98f733f7d36904cbc Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Thu, 1 Nov 2018 12:28:41 -0400 Subject: [PATCH] Add docblock for skipDomainName --- pdns/dnsparser.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pdns/dnsparser.cc b/pdns/dnsparser.cc index f705228cf..2ad7cc977 100644 --- a/pdns/dnsparser.cc +++ b/pdns/dnsparser.cc @@ -582,6 +582,10 @@ public: : d_packet(packet), d_length(length), d_notyouroffset(12), d_offset(d_notyouroffset) {} + /*! Advances past a wire-format domain name + * The name is not checked for adherence to length restrictions. + * Compression pointers are not followed. + */ void skipDomainName() { uint8_t len; @@ -593,6 +597,7 @@ public: skipBytes(len); } } + void skipBytes(uint16_t bytes) { moveOffset(bytes); -- 2.40.0