}
fw3_ipt_commit(handle);
+ fw3_ipt_close(handle);
}
family_set(run_state, family, false);
if (!print_family)
fw3_ipt_commit(handle);
+
+ fw3_ipt_close(handle);
}
if (!print_family)
fw3_flush_rules(handle, run_state, true);
fw3_flush_zones(handle, run_state, true);
fw3_ipt_commit(handle);
+ fw3_ipt_close(handle);
}
family_set(run_state, family, false);
fw3_print_default_tail_rules(handle, cfg_state, true);
fw3_ipt_commit(handle);
+ fw3_ipt_close(handle);
}
fw3_print_includes(cfg_state, family, true);
if (!strcmp(argv[optind], "print"))
{
if (family == FW3_FAMILY_ANY)
+ {
family = FW3_FAMILY_V4;
- else if (family == FW3_FAMILY_V6 && defs->disable_ipv6)
- warn("IPv6 rules globally disabled in configuration");
+ }
+ else if (family == FW3_FAMILY_V6)
+ {
+ if (defs->disable_ipv6)
+ warn("IPv6 rules globally disabled in configuration");
+#ifdef DISABLE_IPV6
+ else
+ warn("IPv6 support is not compiled in");
+#endif
+ }
freopen("/dev/null", "w", stderr);