static int
stop(struct fw3_state *state, bool complete, bool reload)
{
+ FILE *ct;
+
int rv = 1;
enum fw3_family family;
enum fw3_table table;
fw3_command_close();
}
+ if (complete && (ct = fopen("/proc/net/nf_conntrack", "w")) != NULL)
+ {
+ info("Flushing conntrack table ...");
+
+ fwrite("f\n", 2, 1, ct);
+ fclose(ct);
+ }
+
if (!rv)
fw3_write_statefile(state);