]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
v6: rename for_each_chain() to for_each_chain6()
authorMaciej Zenczykowski <maze@google.com>
Mon, 4 Apr 2011 13:34:54 +0000 (15:34 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 4 Apr 2011 13:34:54 +0000 (15:34 +0200)
Signed-off-by: Maciej Zenczykowski <maze@google.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/ip6tables.h
ip6tables-restore.c
ip6tables.c

index ca0f9a0536c26c80621aae515b491d55c48a2840..e9a0f4eaa30d9fa5f1b2685380be3acc60b157b8 100644 (file)
@@ -10,7 +10,7 @@
 extern int do_command6(int argc, char *argv[], char **table,
                       struct ip6tc_handle **handle);
 
-extern int for_each_chain(int (*fn)(const ip6t_chainlabel, int, struct ip6tc_handle *), int verbose, int builtinstoo, struct ip6tc_handle *handle);
+extern int for_each_chain6(int (*fn)(const ip6t_chainlabel, int, struct ip6tc_handle *), int verbose, int builtinstoo, struct ip6tc_handle *handle);
 extern int flush_entries(const ip6t_chainlabel chain, int verbose, struct ip6tc_handle *handle);
 extern int delete_chain(const ip6t_chainlabel chain, int verbose, struct ip6tc_handle *handle);
 void print_rule(const struct ip6t_entry *e, struct ip6tc_handle *h, const char *chain, int counters);
index 48ff98ceba25ff5f1d976df15f9e309bdbcdc3dc..a4e3707825583569b2151a93b6a2c81e8eb4f139 100644 (file)
@@ -226,12 +226,12 @@ int main(int argc, char *argv[])
                        if (noflush == 0) {
                                DEBUGP("Cleaning all chains of table '%s'\n",
                                        table);
-                               for_each_chain(flush_entries, verbose, 1,
+                               for_each_chain6(flush_entries, verbose, 1,
                                                handle);
 
                                DEBUGP("Deleting all user-defined chains "
                                       "of table '%s'\n", table);
-                               for_each_chain(delete_chain, verbose, 0,
+                               for_each_chain6(delete_chain, verbose, 0,
                                                handle);
                        }
 
index 96a0fdcf979da5306c55fe84f085dc25aa9d003f..67745863991259fdd31a5288860054158b8f1d83 100644 (file)
@@ -859,7 +859,7 @@ check_entry(const ip6t_chainlabel chain, struct ip6t_entry *fw,
 }
 
 int
-for_each_chain(int (*fn)(const ip6t_chainlabel, int, struct ip6tc_handle *),
+for_each_chain6(int (*fn)(const ip6t_chainlabel, int, struct ip6tc_handle *),
               int verbose, int builtinstoo, struct ip6tc_handle *handle)
 {
        int ret = 1;
@@ -899,7 +899,7 @@ flush_entries(const ip6t_chainlabel chain, int verbose,
              struct ip6tc_handle *handle)
 {
        if (!chain)
-               return for_each_chain(flush_entries, verbose, 1, handle);
+               return for_each_chain6(flush_entries, verbose, 1, handle);
 
        if (verbose)
                fprintf(stdout, "Flushing chain `%s'\n", chain);
@@ -911,7 +911,7 @@ zero_entries(const ip6t_chainlabel chain, int verbose,
             struct ip6tc_handle *handle)
 {
        if (!chain)
-               return for_each_chain(zero_entries, verbose, 1, handle);
+               return for_each_chain6(zero_entries, verbose, 1, handle);
 
        if (verbose)
                fprintf(stdout, "Zeroing chain `%s'\n", chain);
@@ -923,7 +923,7 @@ delete_chain(const ip6t_chainlabel chain, int verbose,
             struct ip6tc_handle *handle)
 {
        if (!chain)
-               return for_each_chain(delete_chain, verbose, 0, handle);
+               return for_each_chain6(delete_chain, verbose, 0, handle);
 
        if (verbose)
                fprintf(stdout, "Deleting chain `%s'\n", chain);