diff options
author | Florian Westphal <fw@strlen.de> | 2021-01-20 18:30:03 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-01-26 00:06:11 +0300 |
commit | 83ace77f51175023c3757e2d08a92565f9b1c7f3 (patch) | |
tree | 257c5e24e020641faf304c3f8d3a3d57e71130e7 /include/linux/netfilter.h | |
parent | a61e4b60761fa7fa2cfde6682760763537ce5549 (diff) | |
download | linux-83ace77f51175023c3757e2d08a92565f9b1c7f3.tar.xz |
netfilter: ctnetlink: remove get_ct indirection
Use nf_ct_get() directly, its a small inline helper without dependencies.
Add CONFIG_NF_CONNTRACK guards to elide the relevant part when conntrack
isn't available at all.
v2: add ifdef guard around nf_ct_get call (kernel test robot)
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/linux/netfilter.h')
-rw-r--r-- | include/linux/netfilter.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h index 0101747de549..f0f3a8354c3c 100644 --- a/include/linux/netfilter.h +++ b/include/linux/netfilter.h @@ -463,8 +463,6 @@ extern struct nf_ct_hook __rcu *nf_ct_hook; struct nlattr; struct nfnl_ct_hook { - struct nf_conn *(*get_ct)(const struct sk_buff *skb, - enum ip_conntrack_info *ctinfo); size_t (*build_size)(const struct nf_conn *ct); int (*build)(struct sk_buff *skb, struct nf_conn *ct, enum ip_conntrack_info ctinfo, |