]> err.no Git - linux-2.6/commit
[EBTABLES]: Split ebt_check_entry_size_and_hooks
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 1 Dec 2006 03:25:51 +0000 (19:25 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:31:56 +0000 (21:31 -0800)
commit22b440bf9e717226d0fbaf4f29357cbdd5279de5
tree60ed5c4e78c0e539745ba79e75719de1cd6af59c
parent14197d5447afc41fce6b11a91592278cad1a09eb
[EBTABLES]: Split ebt_check_entry_size_and_hooks

Split ebt_check_entry_size_and_hooks() in two parts - one that does
sanity checks on pointers (basically, checks that we can safely
use iterator from now on) and the rest of it (looking into details
of entry).

The loop applying ebt_check_entry_size_and_hooks() is split in two.

Populating newinfo->hook_entry[] is done in the first part.

Unused arguments killed.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/netfilter/ebtables.c