iptables: Add chain iterator
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Tue, 19 Mar 2013 12:46:29 +0000 (13:46 +0100)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 25 Mar 2013 11:17:57 +0000 (13:17 +0200)
commit6caa1417f6c8b2e1460915f2372f333c4b218ac7
tree62ac77da9c7832b22d0fc3ac676c6f19cd0a0159
parenta0b5c505ec9e42811bfe3b398b7b074cd7aab355
iptables: Add chain iterator

We will implement the ConnMan iptables specific part in a different
file and leave the iptables.c file as small as possible.

Therefore, we move the flushing part out, but we need a way to
find our chains on bootup (left over from a crash). Let's add an
interater which walks over all chains which allows a higher level
to find the chains it is looking for (e.g. connman-INPUT)
src/connman.h
src/iptables.c