]> git.baikalelectronics.ru Git - kernel.git/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)
commit52b36382b03315492acaf78895e9c1cdb82c7153
tree60ed5c4e78c0e539745ba79e75719de1cd6af59c
parentecf5dca68c8cc5c91a8a601c173b72c990e68049
[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