#include "includes.h"
#include "ubus.h"
#include "iptables.h"
+#include "helpers.h"
static enum fw3_family print_family = FW3_FAMILY_ANY;
fw3_ubus_rules(&b);
fw3_load_defaults(state, p);
+ fw3_load_cthelpers(state, p);
fw3_load_ipsets(state, p, b.head);
fw3_load_zones(state, p);
fw3_load_rules(state, p, b.head);
fw3_load_redirects(state, p, b.head);
fw3_load_snats(state, p, b.head);
fw3_load_forwards(state, p, b.head);
- fw3_load_includes(state, p);
+ fw3_load_includes(state, p, b.head);
return true;
}
list_for_each_safe(cur, tmp, &state->includes)
fw3_free_include((struct fw3_include *)cur);
+ list_for_each_safe(cur, tmp, &state->cthelpers)
+ fw3_free_cthelper((struct fw3_cthelper *)cur);
+
uci_free_context(state->uci);
free(state);