]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: Allow access to EDNS options from the `gettag()` hook 5198/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 23 Mar 2017 16:27:21 +0000 (17:27 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 24 Mar 2017 10:15:16 +0000 (11:15 +0100)
commit00b8cadc9fa22f0ac3d1e2cb5f68964471693130
tree532dc0900da74ca756c843375ee7b0870840fcec
parenta77e6c032249caa264bdba84887e1a0f0b7db1e0
rec: Allow access to EDNS options from the `gettag()` hook

If `gettag-needs-edns-options` is set, the EDNS options are extracted
and passed to the `gettag()` hook as a table whose keys are the
EDNS option code and the values are `EDNSOptionView` object.
`EDNSOptionView` has two members, `content` and `size`, with `content`
holding the raw, undecoded option value.
docs/markdown/recursor/scripting.md
docs/markdown/recursor/settings.md
pdns/ednsoptions.cc
pdns/ednsoptions.hh
pdns/lua-recursor4.cc
pdns/lua-recursor4.hh
pdns/pdns_recursor.cc
pdns/recursordist/Makefile.am
pdns/recursordist/ednscookies.cc [new symlink]
pdns/recursordist/ednscookies.hh [new symlink]
pdns/recursordist/test-ednsoptions_cc.cc [new file with mode: 0644]