{
int r;
struct auth_zone* z;
+ /* TODO: in iterator, after cache lookup, before network lookup,
+ * call this to get answer */
/* find the zone that should contain the answer. */
lock_rw_rdlock(&az->lock);
struct query_info* qinfo, struct edns_data* edns, struct sldns_buffer* buf,
struct regional* temp)
{
+ /* TODO: in handle after localzones, before cache, if az != NULL,
+ * call this function to answer downstream */
struct dns_msg* msg = NULL;
struct auth_zone* z;
int r;
void
auth_xfer_pickup_initial(struct auth_zones* az, struct module_env* env)
{
+ /* TODO: call this from worker0 at start of unbound */
struct auth_xfer* x;
lock_rw_wrlock(&az->lock);
RBTREE_FOR(x, struct auth_xfer*, &az->xtree) {
* @param az: auth zones structure
* @param cfg: config to apply.
* @param setup: if true, also sets up values in the auth zones structure
- * @parm env: for setup, with current time.
+ * @param env: for setup, with current time.
* @return false on failure.
*/
int auth_zones_apply_cfg(struct auth_zones* az, struct config_file* cfg,