Commit 8771d972 authored by Daniel Salzman's avatar Daniel Salzman

nameserver: remove internet processing support for global modules

parent 1021b86d
......@@ -621,16 +621,10 @@ static int answer_query(knot_pkt_t *pkt, struct query_data *qdata)
{
int state = BEGIN;
struct query_plan *plan = qdata->zone->query_plan;
struct query_plan *global_plan = conf()->query_plan;
struct query_step *step = NULL;
/* Resolve ANSWER. */
knot_pkt_begin(pkt, KNOT_ANSWER);
if (global_plan != NULL) {
WALK_LIST(step, global_plan->stage[QPLAN_ANSWER]) {
SOLVE_STEP(step->process, state, step->ctx);
}
}
SOLVE_STEP(solve_answer, state, NULL);
SOLVE_STEP(solve_answer_dnssec, state, NULL);
if (plan != NULL) {
......@@ -641,11 +635,6 @@ static int answer_query(knot_pkt_t *pkt, struct query_data *qdata)
/* Resolve AUTHORITY. */
knot_pkt_begin(pkt, KNOT_AUTHORITY);
if (global_plan != NULL) {
WALK_LIST(step, global_plan->stage[QPLAN_AUTHORITY]) {
SOLVE_STEP(step->process, state, step->ctx);
}
}
SOLVE_STEP(solve_authority, state, NULL);
SOLVE_STEP(solve_authority_dnssec, state, NULL);
if (plan != NULL) {
......@@ -656,11 +645,6 @@ static int answer_query(knot_pkt_t *pkt, struct query_data *qdata)
/* Resolve ADDITIONAL. */
knot_pkt_begin(pkt, KNOT_ADDITIONAL);
if (global_plan != NULL) {
WALK_LIST(step, global_plan->stage[QPLAN_ADDITIONAL]) {
SOLVE_STEP(step->process, state, step->ctx);
}
}
SOLVE_STEP(solve_additional, state, NULL);
SOLVE_STEP(solve_additional_dnssec, state, NULL);
if (plan != NULL) {
......
......@@ -36,7 +36,7 @@
/*! \note All modules should be dynamically loaded later on. */
static_module_t MODULES[] = {
{ C_MOD_RRL, &rrl_load, &rrl_unload, MOD_SCOPE_ANY },
{ C_MOD_SYNTH_RECORD, &synth_record_load, &synth_record_unload, MOD_SCOPE_ANY },
{ C_MOD_SYNTH_RECORD, &synth_record_load, &synth_record_unload, MOD_SCOPE_ZONE },
{ C_MOD_DNSPROXY, &dnsproxy_load, &dnsproxy_unload, MOD_SCOPE_ANY },
{ C_MOD_ONLINE_SIGN, &online_sign_load, &online_sign_unload, MOD_SCOPE_ZONE, true },
{ C_MOD_STATS, &stats_load, &stats_unload, MOD_SCOPE_ANY, true },
......@@ -46,7 +46,7 @@ static_module_t MODULES[] = {
#if USE_DNSTAP
{ C_MOD_DNSTAP, &dnstap_load, &dnstap_unload, MOD_SCOPE_ANY },
#endif
{ C_MOD_WHOAMI, &whoami_load, &whoami_unload, MOD_SCOPE_ANY, true },
{ C_MOD_WHOAMI, &whoami_load, &whoami_unload, MOD_SCOPE_ZONE, true },
{ C_MOD_NOUDP, &noudp_load, &noudp_unload, MOD_SCOPE_ANY, true },
{ NULL }
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment