From: Richard Gibson Date: Thu, 1 Nov 2018 16:28:41 +0000 (-0400) Subject: Add docblock for skipDomainName X-Git-Tag: auth-4.2.0-alpha1~51^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F7111%2Fhead;p=thirdparty%2Fpdns.git Add docblock for skipDomainName --- diff --git a/pdns/dnsparser.cc b/pdns/dnsparser.cc index f705228cf9..2ad7cc977f 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);