iptables: Get rid of the iterator macro
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Tue, 12 Feb 2013 09:19:40 +0000 (10:19 +0100)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 12 Feb 2013 10:28:46 +0000 (12:28 +0200)
commit6901798cc2dcb5eab8598296abb8245404d9777e
treed9e8e2f7fdfaa6d5c9fe7d070d849235a2340ac0
parent29d4d4815bc64d543b1fde6e24a960747deca8ef
iptables: Get rid of the iterator macro

Instead implement the iterator loop directly. Since both dump_entry()
and add_entry() have calculated 'builtin' and 'offset' let's pass in
them in as well.

In the next step we are able to remove also the table argument
which will allow us to unify the parsing the table we get
from IPT_SO_GET_ENTRIES and the table we will pass in to the kernel
via IPT_SO_SET_REPLACE.
src/iptables.c