iptables: Fix and refactor iterate_entries()
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Wed, 6 Mar 2013 15:08:50 +0000 (16:08 +0100)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 7 Mar 2013 08:07:07 +0000 (10:07 +0200)
commit4a3961caed734cf6aa1a445b2ae2388dcda9ff17
treea5aefccb1103333ef74268df49d7e576e8d05d6b
parent63994912c07341c62c91fdffe4b372cb06c8b624
iptables: Fix and refactor iterate_entries()

Updating the builtin and hook index is more complex then one
would expect. In order to be able to update them correctly
we need also to pass in the underflow table to the iterate
function. To improve the readability the valid_hook magic
has been moved into next_hook_entry_index() which does exactly
as the name says.
src/iptables.c