iptables: fix regression with unintended free in need_protomatch
[project/firewall3.git] / iptables.h
index fb4a899a8fa8d6ce6b9ba425772fa07943ed3b05..ca39809856cd1f92af1e0fb331785eea84773884 100644 (file)
@@ -50,11 +50,13 @@ void fw3_ipt_set_policy(struct fw3_ipt_handle *h, const char *chain,
 
 
 void fw3_ipt_flush_chain(struct fw3_ipt_handle *h, const char *chain);
-void fw3_ipt_delete_chain(struct fw3_ipt_handle *h, const char *chain);
+void fw3_ipt_delete_chain(struct fw3_ipt_handle *h, bool if_unused,
+                          const char *chain);
 
 void fw3_ipt_delete_id_rules(struct fw3_ipt_handle *h, const char *chain);
 
-void fw3_ipt_create_chain(struct fw3_ipt_handle *h, const char *fmt, ...);
+void fw3_ipt_create_chain(struct fw3_ipt_handle *h, bool ignore_existing,
+                          const char *chain);
 
 void fw3_ipt_flush(struct fw3_ipt_handle *h);