static struct fw3_option zone_opts[] = {
FW3_OPT("name", string, zone, name),
+ FW3_OPT("family", family, zone, family),
FW3_LIST("network", device, zone, networks),
FW3_LIST("device", device, zone, devices),
if (!fw3_is_family(zone, family))
return;
+ setbit(zone->dst_flags, family);
+
if (!zone->conntrack && !disable_notrack)
setbit(zone->dst_flags, FW3_TARGET_NOTRACK);
if (e->type != FW3_TYPE_ZONE)
continue;
+ if (!hasbit(e->flags[1], family))
+ continue;
+
print_chains(table, family, pass2 ? "-X %s\n" : "-F %s\n",
e->name, e->flags[0], src_chains, ARRAY_SIZE(src_chains));