]> granicus.if.org Git - pdns/commit
rec: Manage the applied policy and tags from pre/post resolve hooks
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 25 May 2016 14:41:00 +0000 (16:41 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 25 May 2016 14:41:00 +0000 (16:41 +0200)
commit667f6c7cef3b275639388e2adf2c78e0da00a3ce
treed699acdb3790801241108853c76d0935041adced
parentec77be942a1bfdab4554a13a2a84269e7c9e2058
rec: Manage the applied policy and tags from pre/post resolve hooks

This adds a `appliedPolicy` string member to the dq object, along
with new methods:
 * `addPolicyTag(string)`
 * `setPolicyTags(table of strings)`
 * `getPolicyTags()`
A new repeated (ie, {0,n}) `tags` is added to our protobuf responses.
pdns/dnsmessage.proto
pdns/lua-recursor4.cc
pdns/lua-recursor4.hh
pdns/pdns_recursor.cc