diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2013-02-12 10:19:41 +0100 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2013-02-12 12:28:53 +0200 |
commit | 357e1f69689bd29d2f151f984770ae98b03f1b0e (patch) | |
tree | 0f944ec2ddc7baa2518c1c51a8574c33eb7e226e | |
parent | 6901798cc2dcb5eab8598296abb8245404d9777e (diff) | |
download | connman-357e1f69689bd29d2f151f984770ae98b03f1b0e.tar.gz connman-357e1f69689bd29d2f151f984770ae98b03f1b0e.tar.bz2 connman-357e1f69689bd29d2f151f984770ae98b03f1b0e.zip |
iptables: Do not pass table into dump_match() and dump_target()
-rw-r--r-- | src/iptables.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/iptables.c b/src/iptables.c index 67dff38d..a20e70ce 100644 --- a/src/iptables.c +++ b/src/iptables.c @@ -1120,8 +1120,7 @@ static void dump_ip(struct ipt_entry *entry) connman_info("\tdst %s/%s", ip_string, ip_mask); } -static void dump_target(struct connman_iptables *table, - struct ipt_entry *entry) +static void dump_target(struct ipt_entry *entry) { struct xtables_target *xt_t; @@ -1156,9 +1155,7 @@ static void dump_target(struct connman_iptables *table, break; default: - connman_info("\tJUMP @%p (0x%x)", - (char*)table->blob_entries->entrytable + - t->verdict, t->verdict); + connman_info("\tJUMP (0x%x)", t->verdict); break; } @@ -1181,7 +1178,7 @@ static void dump_target(struct connman_iptables *table, } } -static void dump_match(struct connman_iptables *table, struct ipt_entry *entry) +static void dump_match(struct ipt_entry *entry) { struct xtables_match *xt_m; struct xt_entry_match *match; @@ -1244,8 +1241,8 @@ static int dump_entry(struct connman_iptables *table, entry->next_offset); } - dump_match(table, entry); - dump_target(table, entry); + dump_match(entry); + dump_target(entry); dump_ip(entry); return 0; |