summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2011-09-23 14:43:41 +0300
committerSamuel Ortiz <sameo@linux.intel.com>2011-09-29 17:52:59 +0200
commit8c62cb26f0513b99e264a4993ce1c25e8e6470d0 (patch)
tree34f34febeb560f046ff5f4cab1695145652166ba /src
parent5dc5b96e910f0fdcee10239f753a3df103ca57dd (diff)
downloadconnman-8c62cb26f0513b99e264a4993ce1c25e8e6470d0.tar.gz
connman-8c62cb26f0513b99e264a4993ce1c25e8e6470d0.tar.bz2
connman-8c62cb26f0513b99e264a4993ce1c25e8e6470d0.zip
iptables: Renaming add into append
Diffstat (limited to 'src')
-rw-r--r--src/iptables.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/iptables.c b/src/iptables.c
index 4a4a9bf3..3f1a92a0 100644
--- a/src/iptables.c
+++ b/src/iptables.c
@@ -664,8 +664,7 @@ static struct ipt_entry *prepare_rule_inclusion(struct connman_iptables *table,
return new_entry;
}
-static int
-iptables_add_rule(struct connman_iptables *table,
+static int iptables_append_rule(struct connman_iptables *table,
struct ipt_ip *ip, char *chain_name,
char *target_name, struct xtables_target *xt_t,
char *match_name, struct xtables_match *xt_m)
@@ -1338,7 +1337,7 @@ static int iptables_command(int argc, char *argv[])
DBG("Adding %s to %s (match %s)",
target_name, chain, match_name);
- ret = iptables_add_rule(table, &ip, chain,
+ ret = iptables_append_rule(table, &ip, chain,
target_name, xt_t, match_name, xt_m);
goto out;