summaryrefslogtreecommitdiff
path: root/net/netfilter/nf_internals.h
diff options
context:
space:
mode:
authorJianguo Wu <wujianguo@chinatelecom.cn>2024-06-13 12:42:47 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2024-06-19 19:41:59 +0300
commita2225e0250c5fa397dcebf6ce65a9f05a114e0cf (patch)
tree405771541236b68dc79513002dc055029444b110 /net/netfilter/nf_internals.h
parent9a3bc8d16e0aacd65c31aaf23a2bced3288a7779 (diff)
downloadlinux-a2225e0250c5fa397dcebf6ce65a9f05a114e0cf.tar.xz
netfilter: move the sysctl nf_hooks_lwtunnel into the netfilter core
Currently, the sysctl net.netfilter.nf_hooks_lwtunnel depends on the nf_conntrack module, but the nf_conntrack module is not always loaded. Therefore, accessing net.netfilter.nf_hooks_lwtunnel may have an error. Move sysctl nf_hooks_lwtunnel into the netfilter core. Fixes: 7a3f5b0de364 ("netfilter: add netfilter hooks to SRv6 data plane") Suggested-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Jianguo Wu <wujianguo@chinatelecom.cn> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_internals.h')
-rw-r--r--net/netfilter/nf_internals.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/netfilter/nf_internals.h b/net/netfilter/nf_internals.h
index 832ae64179f0..25403023060b 100644
--- a/net/netfilter/nf_internals.h
+++ b/net/netfilter/nf_internals.h
@@ -29,6 +29,12 @@ void nf_queue_nf_hook_drop(struct net *net);
/* nf_log.c */
int __init netfilter_log_init(void);
+#ifdef CONFIG_LWTUNNEL
+/* nf_hooks_lwtunnel.c */
+int __init netfilter_lwtunnel_init(void);
+void netfilter_lwtunnel_fini(void);
+#endif
+
/* core.c */
void nf_hook_entries_delete_raw(struct nf_hook_entries __rcu **pp,
const struct nf_hook_ops *reg);