]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: Create and use nf_hook_state.
authorDavid S. Miller <davem@davemloft.net>
Fri, 3 Apr 2015 20:23:58 +0000 (16:23 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Apr 2015 16:17:40 +0000 (12:17 -0400)
commit56a03aaa6f87c50991ee933a845e05c715cbe256
treee844207925d20a832f575793ca9d6e1d4ff546f8
parent2cbc4bef9d31f69252f11d875dea99c238e9ec4b
netfilter: Create and use nf_hook_state.

Instead of passing a large number of arguments down into the nf_hook()
entry points, create a structure which carries this state down through
the hook processing layers.

This makes is so that if we want to change the types or signatures of
any of these pieces of state, there are less places that need to be
changed.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netfilter.h
net/netfilter/core.c
net/netfilter/nf_internals.h
net/netfilter/nf_queue.c