X-Git-Url: http://git.archive.openwrt.org/?p=project%2Ffirewall3.git;a=blobdiff_plain;f=rules.h;h=bdd36a2fa2965a0c6dd1ea76260ae43fa7eddbaf;hp=6d332fc61e5ca3002a49a70bc79a9f0335936994;hb=c03e20d7f594058ff223f30cf34de1b5e8210b8d;hpb=6b27a6665c288937eb5028063064e3350dcab545 diff --git a/rules.h b/rules.h index 6d332fc..bdd36a2 100644 --- a/rules.h +++ b/rules.h @@ -27,10 +27,13 @@ extern const struct fw3_option fw3_rule_opts[]; -void fw3_load_rules(struct fw3_state *state, struct uci_package *p); +void fw3_load_rules(struct fw3_state *state, struct uci_package *p, struct blob_attr *a); void fw3_print_rules(struct fw3_ipt_handle *handle, struct fw3_state *state); -#define fw3_free_rule(rule) \ - fw3_free_object(rule, fw3_rule_opts) +static inline void fw3_free_rule(struct fw3_rule *rule) +{ + list_del(&rule->list); + fw3_free_object(rule, fw3_rule_opts); +} #endif