]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
v4: rename print_rule() to print_rule4()
authorMaciej Zenczykowski <maze@google.com>
Mon, 4 Apr 2011 13:37:13 +0000 (15:37 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 4 Apr 2011 13:37:13 +0000 (15:37 +0200)
Signed-off-by: Maciej Zenczykowski <maze@google.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/iptables.h
iptables-save.c
iptables.c

index 4e9ae1974a73ac9cf535a05082d8c7a332cf7050..204c92eace29bb7a744bef9afa8f2e65be16edf7 100644 (file)
@@ -15,7 +15,7 @@ extern int flush_entries4(const ipt_chainlabel chain, int verbose,
                        struct iptc_handle *handle);
 extern int for_each_chain4(int (*fn)(const ipt_chainlabel, int, struct iptc_handle *),
                int verbose, int builtinstoo, struct iptc_handle *handle);
-extern void print_rule(const struct ipt_entry *e,
+extern void print_rule4(const struct ipt_entry *e,
                struct iptc_handle *handle, const char *chain, int counters);
 
 /* kernel revision handling */
index a0aa5d8083054974c3c3b5d0cd3e77133df3c646..dee1752885fd156c60f8d95af1c918bbdf683e5e 100644 (file)
@@ -107,7 +107,7 @@ static int do_output(const char *tablename)
                        /* Dump out rules */
                        e = iptc_first_rule(chain, h);
                        while(e) {
-                               print_rule(e, h, chain, show_counters);
+                               print_rule4(e, h, chain, show_counters);
                                e = iptc_next_rule(e, h);
                        }
                }
index 5af832e5bbc4c2eb7209ead7b8172c21bb6dcf5d..b7c94981f0de6936c48f1474cad4ddd3ed8f3f9b 100644 (file)
@@ -1101,7 +1101,7 @@ static void print_ip(const char *prefix, uint32_t ip,
 
 /* We want this to be readable, so only print out neccessary fields.
  * Because that's the kind of world I want to live in.  */
-void print_rule(const struct ipt_entry *e,
+void print_rule4(const struct ipt_entry *e,
                struct iptc_handle *h, const char *chain, int counters)
 {
        const struct ipt_entry_target *t;
@@ -1224,7 +1224,7 @@ list_rules(const ipt_chainlabel chain, int rulenum, int counters,
                while(e) {
                        num++;
                        if (!rulenum || num == rulenum)
-                           print_rule(e, handle, this, counters);
+                           print_rule4(e, handle, this, counters);
                        e = iptc_next_rule(e, handle);
                }
                found = 1;