Accept network names in per-zone subnet option
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 19 Mar 2013 13:48:03 +0000 (14:48 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 19 Mar 2013 13:48:03 +0000 (14:48 +0100)
zones.c

diff --git a/zones.c b/zones.c
index 9f4df5864c875e3939eef0574ec1a404150db442..a269629f239d23d90c9392d1fcce17d272e1fde1 100644 (file)
--- a/zones.c
+++ b/zones.c
@@ -73,7 +73,7 @@ const struct fw3_option fw3_zone_opts[] = {
 
        FW3_LIST("network",            device,   zone,     networks),
        FW3_LIST("device",             device,   zone,     devices),
-       FW3_LIST("subnet",             address,  zone,     subnets),
+       FW3_LIST("subnet",             network,  zone,     subnets),
 
        FW3_OPT("input",               target,   zone,     policy_input),
        FW3_OPT("forward",             target,   zone,     policy_forward),
@@ -465,7 +465,7 @@ print_zone_rule(struct fw3_state *state, enum fw3_family family,
                                if (!fw3_is_family(msrc, family) ||
                                    !fw3_is_family(mdest, family))
                                        continue;
-                               
+
                                fw3_pr("-A zone_%s_postrouting", zone->name);
                                fw3_format_src_dest(msrc, mdest);
                                fw3_pr(" -j MASQUERADE\n");