Hi Daniel,
+int __connman_iptables_managed_append(const char *table_name,
+                                       const char *chain,
+                                       const char *rule_spec)
+{
+       return __connman_iptables_append(table_name, chain, rule_spec);
+}
+
+int __connman_iptables_managed_delete(const char *table_name,
+                               const char *chain,
+                               const char *rule_spec)
+{
+       return __connman_iptables_delete(table_name, chain, rule_spec);
+}
+
  int __connman_iptables_commit(const char *table_name)
  {
        struct connman_iptables *table;

Why adding such *_managed_* fonctions? Just use the original ones: all rules manipulated by connman will be anyway put into connman's chains. It should be totally transparent in other places in connman that all rules added/deleted and so on will be put into connman's chains. So let's not confuse with specific function names.

Keep __connman_iptables_append/delete and modify those so it goes into connman's chains.

Tomasz
_______________________________________________
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman

Reply via email to