summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-arp-standalone.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2013-09-18 17:00:18 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-12-30 23:50:49 +0100
commitd6a127cd5710f8c60e95bfd0378ca352c07140a9 (patch)
tree47f7dd7ac799ae19005a599c6d4dae4208306553 /iptables/xtables-arp-standalone.c
parentdbc05560e73d6df7f7013fa892810b9b8329aa1d (diff)
xtables: batch rule-set updates into one single netlink message
With this patch, all rule-set updates are put in one single batch of netlink messages that is sent to user-space using the new nfnetlink batch infrastructure. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/xtables-arp-standalone.c')
-rw-r--r--iptables/xtables-arp-standalone.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/iptables/xtables-arp-standalone.c b/iptables/xtables-arp-standalone.c
index 186c9a1e..8d4679f1 100644
--- a/iptables/xtables-arp-standalone.c
+++ b/iptables/xtables-arp-standalone.c
@@ -81,6 +81,8 @@ int xtables_arp_main(int argc, char *argv[])
#endif
ret = do_commandarp(&h, argc, argv, &table);
+ if (ret)
+ ret = nft_commit(&h);
exit(!ret);
}