diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-07-11 02:14:30 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-07-15 18:51:44 +0300 |
commit | 0edcf282b0a6f38168294264837cf7d52a2f5255 (patch) | |
tree | 681091d6de00c9a7f9291e3172338d1d2f5e4a11 /include/net/netns | |
parent | 4c0911566dec7755d15cb89239fb2db4447f7a62 (diff) | |
download | linux-0edcf282b0a6f38168294264837cf7d52a2f5255.tar.xz |
netfilter: Factor out the hook list selection from nf_register_hook
- Add a new function find_nf_hook_list to select the nf_hook_list
- Fail nf_register_hook when asked for a per netdevice hook list when
support for per netdevice hook lists is not built into the kernel.
- Move the hook list head selection outside of nf_hook_mutex as
nothing in the selection requires the hook list, and error handling
is simpler if a mutex is not held.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netns')
0 files changed, 0 insertions, 0 deletions