]> git.ipfire.org Git - thirdparty/pdns.git/commit
SVCB: Correctly parse and print unknown params 9878/head
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 9 Dec 2020 16:03:53 +0000 (17:03 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 16 Dec 2020 10:59:19 +0000 (11:59 +0100)
commitccf6dca0a755b3696d28f9874283add4e6a0ef12
tree387aa935ac8692961ab79768cecef09e3568e8f4
parent38265a522040710659d7b1585205c549e5333863
SVCB: Correctly parse and print unknown params

There were multiple issues. With this commit, we *always* store the
bytes that are represented by the option. To do this, we needed to
properly parse RFC 1035 character-strings. This is now done with a
conversion of the ABNF from draft-ietf-dnsop-svcb-https-02 to ragel.

The resulting function could be used as a starting point for a better
TXT storage format.

(cherry picked from commit b1a048a9caa0d14f9e6665c45af004c041fe5c5e)
(cherry picked from commit ca749ae109941ad0b5e96043b9f6a76305c4fcc7)
pdns/dnslabeltext.rl
pdns/dnswriter.cc
pdns/misc.hh
pdns/rcpgenerator.cc
pdns/rcpgenerator.hh
pdns/test-dnsrecords_cc.cc
pdns/test-rcpgenerator_cc.cc