X-Git-Url: http://git.archive.openwrt.org/?p=project%2Ffirewall3.git;a=blobdiff_plain;f=zones.c;h=979d150e56080719c67da43ef2029fc158c86c80;hp=11ec56979aaceec7c1f1d43c332bf65724d5651e;hb=f12271d15da3796c558b6649e97dad988ae2c057;hpb=29f2457a3d054893c8718fd511bb11ab1d8f5652 diff --git a/zones.c b/zones.c index 11ec569..979d150 100644 --- a/zones.c +++ b/zones.c @@ -23,7 +23,7 @@ #define C(f, tbl, tgt, fmt) \ { FW3_FAMILY_##f, FW3_TABLE_##tbl, FW3_FLAG_##tgt, fmt } -static const struct fw3_rule_spec zone_chains[] = { +static const struct fw3_chain_spec zone_chains[] = { C(ANY, FILTER, UNSPEC, "zone_%s_input"), C(ANY, FILTER, UNSPEC, "zone_%s_output"), C(ANY, FILTER, UNSPEC, "zone_%s_forward"), @@ -232,7 +232,7 @@ print_zone_chain(struct fw3_ipt_handle *handle, struct fw3_state *state, { int i; struct fw3_ipt_rule *r; - const struct fw3_rule_spec *c; + const struct fw3_chain_spec *c; const char *flt_chains[] = { "input", "input", @@ -563,7 +563,7 @@ fw3_flush_zones(struct fw3_ipt_handle *handle, struct fw3_state *state, bool reload) { struct fw3_zone *z, *tmp; - const struct fw3_rule_spec *c; + const struct fw3_chain_spec *c; char chain[32]; list_for_each_entry_safe(z, tmp, &state->zones, list)