case RuleChain::CacheMissRules:
return chains.d_cacheMissRuleActions;
}
+
+ throw std::runtime_error("Trying to accept an invalid rule chain");
}
const std::vector<RuleAction>& getRuleChain(const RuleChains& chains, RuleChain chain)
case RuleChain::CacheMissRules:
return chains.d_cacheMissRuleActions;
}
+
+ throw std::runtime_error("Trying to accept an invalid rule chain");
}
std::vector<ResponseRuleAction>& getRuleChain(RuleChains& chains, ResponseRuleChain chain)
case ResponseRuleChain::XFRResponseRules:
return chains.d_XFRRespRuleActions;
}
+
+ throw std::runtime_error("Trying to accept an invalid response rule chain");
}
const std::vector<ResponseRuleAction>& getResponseRuleChain(const RuleChains& chains, ResponseRuleChain chain)
case ResponseRuleChain::XFRResponseRules:
return chains.d_XFRRespRuleActions;
}
+
+ throw std::runtime_error("Trying to accept an invalid response rule chain");
}
void add(RuleChains& chains, RuleChain identifier, const std::shared_ptr<DNSRule>& selector, const std::shared_ptr<DNSAction>& action, std::string&& name, const boost::uuids::uuid& uuid, uint64_t creationOrder)