diff options
author | Florian Westphal <fw@strlen.de> | 2018-02-27 19:42:29 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-03-05 23:15:43 +0100 |
commit | 1b293e30f759b03f246baae862bdf35e57b2c39e (patch) | |
tree | 5c2199044640bd02ec1121c4138b5f2f9a282323 /include | |
parent | 472ebdcd15ebdb8ebe20474ef1ce09abcb241e7d (diff) | |
download | linux-stable-1b293e30f759b03f246baae862bdf35e57b2c39e.tar.gz linux-stable-1b293e30f759b03f246baae862bdf35e57b2c39e.tar.bz2 linux-stable-1b293e30f759b03f246baae862bdf35e57b2c39e.zip |
netfilter: x_tables: move hook entry checks into core
Allow followup patch to change on location instead of three.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netfilter/x_tables.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/netfilter/x_tables.h b/include/linux/netfilter/x_tables.h index 1313b35c3ab7..fa0c19c328f1 100644 --- a/include/linux/netfilter/x_tables.h +++ b/include/linux/netfilter/x_tables.h @@ -281,6 +281,8 @@ int xt_check_entry_offsets(const void *base, const char *elems, unsigned int target_offset, unsigned int next_offset); +int xt_check_table_hooks(const struct xt_table_info *info, unsigned int valid_hooks); + unsigned int *xt_alloc_entry_offsets(unsigned int size); bool xt_find_jump_offset(const unsigned int *offsets, unsigned int target, unsigned int size); |