Loading...
1#ifndef __NETNS_NETFILTER_H
2#define __NETNS_NETFILTER_H
3
4#include <linux/proc_fs.h>
5#include <linux/netfilter.h>
6
7struct nf_logger;
8
9struct netns_nf {
10#if defined CONFIG_PROC_FS
11 struct proc_dir_entry *proc_netfilter;
12#endif
13 const struct nf_logger __rcu *nf_loggers[NFPROTO_NUMPROTO];
14#ifdef CONFIG_SYSCTL
15 struct ctl_table_header *nf_log_dir_header;
16#endif
17};
18#endif
1#ifndef __NETNS_NETFILTER_H
2#define __NETNS_NETFILTER_H
3
4#include <linux/netfilter_defs.h>
5
6struct proc_dir_entry;
7struct nf_logger;
8struct nf_queue_handler;
9
10struct netns_nf {
11#if defined CONFIG_PROC_FS
12 struct proc_dir_entry *proc_netfilter;
13#endif
14 const struct nf_queue_handler __rcu *queue_handler;
15 const struct nf_logger __rcu *nf_loggers[NFPROTO_NUMPROTO];
16#ifdef CONFIG_SYSCTL
17 struct ctl_table_header *nf_log_dir_header;
18#endif
19 struct nf_hook_entry __rcu *hooks[NFPROTO_NUMPROTO][NF_MAX_HOOKS];
20#if IS_ENABLED(CONFIG_NF_DEFRAG_IPV4)
21 bool defrag_ipv4;
22#endif
23#if IS_ENABLED(CONFIG_NF_DEFRAG_IPV6)
24 bool defrag_ipv6;
25#endif
26};
27#endif