list_for_each_entry(ipset, &state->ipsets, list)
if (!hasbit(ipset->flags[0], FW3_FLAG_DELETED))
- if (!fw3_lookup_ipset(state, ipset->name, true))
- create_ipset(ipset, state);
+ create_ipset(ipset, state);
fw3_pr("quit\n");
}
}
struct fw3_ipset *
-fw3_lookup_ipset(struct fw3_state *state, const char *name, bool running)
+fw3_lookup_ipset(struct fw3_state *state, const char *name)
{
struct fw3_ipset *s;
void fw3_create_ipsets(struct fw3_state *state);
void fw3_destroy_ipsets(struct fw3_state *state, enum fw3_family family);
-struct fw3_ipset * fw3_lookup_ipset(struct fw3_state *state, const char *name,
- bool running);
+struct fw3_ipset * fw3_lookup_ipset(struct fw3_state *state, const char *name);
#define fw3_free_ipset(ipset) \
fw3_free_object(ipset, fw3_ipset_opts)
continue;
}
else if (redir->ipset.set && !redir->ipset.any &&
- !(redir->_ipset = fw3_lookup_ipset(state, redir->ipset.name, false)))
+ !(redir->_ipset = fw3_lookup_ipset(state, redir->ipset.name)))
{
warn_elem(e, "refers to unknown ipset '%s'", redir->ipset.name);
fw3_free_redirect(redir);
continue;
}
else if (rule->ipset.set && !rule->ipset.any &&
- !(rule->_ipset = fw3_lookup_ipset(state, rule->ipset.name, false)))
+ !(rule->_ipset = fw3_lookup_ipset(state, rule->ipset.name)))
{
warn_elem(e, "refers to unknown ipset '%s'", rule->ipset.name);
fw3_free_rule(rule);