addrtree_find(struct addrtree *tree, const addrkey_t *addr,
addrlen_t sourcemask, time_t now)
{
- struct addrnode *parent_node = NULL, *node = tree->root;
+ struct addrnode *node = tree->root;
struct addredge *edge = NULL;
addrlen_t depth = 0;
if (!issub(edge->str, edge->len, addr, sourcemask, depth))
return NULL;
log_assert(depth < edge->len);
- parent_node = node;
depth = edge->len;
node = edge->node;
}
enum module_ext_state
eval_response(struct module_qstate *qstate, int id)
{
- size_t sn_octs;
struct edns_data *c_in = &qstate->edns_client_in; /* rcvd from client */
struct edns_data *c_out = &qstate->edns_client_out;/* will send to client */
struct edns_data *s_in = &qstate->edns_server_in; /* rcvd from auth */
* anywhere. */
/** can we accept response? */
- assert(sn_octs <= INET6_SIZE); /** Enforced by msgparse */
if(s_out->subnet_addr_fam != s_in->subnet_addr_fam ||
s_out->subnet_source_mask != s_in->subnet_source_mask ||
!common_prefix(s_out->subnet_addr, s_in->subnet_addr,
}
void
-subnetmod_clear(struct module_qstate *qstate, int id)
+subnetmod_clear(struct module_qstate *ATTR_UNUSED(qstate),
+ int ATTR_UNUSED(id))
{
/* qstate has no data outside region */
}
void
-subnetmod_inform_super(struct module_qstate *qstate, int id,
- struct module_qstate *super)
+subnetmod_inform_super(struct module_qstate *ATTR_UNUSED(qstate),
+ int ATTR_UNUSED(id), struct module_qstate *ATTR_UNUSED(super))
{
/* Not used */
}