0001
0002 #ifndef __NETNS_NETFILTER_H
0003 #define __NETNS_NETFILTER_H
0004
0005 #include <linux/netfilter_defs.h>
0006
0007 struct proc_dir_entry;
0008 struct nf_logger;
0009 struct nf_queue_handler;
0010
0011 struct netns_nf {
0012 #if defined CONFIG_PROC_FS
0013 struct proc_dir_entry *proc_netfilter;
0014 #endif
0015 const struct nf_logger __rcu *nf_loggers[NFPROTO_NUMPROTO];
0016 #ifdef CONFIG_SYSCTL
0017 struct ctl_table_header *nf_log_dir_header;
0018 #endif
0019 struct nf_hook_entries __rcu *hooks_ipv4[NF_INET_NUMHOOKS];
0020 struct nf_hook_entries __rcu *hooks_ipv6[NF_INET_NUMHOOKS];
0021 #ifdef CONFIG_NETFILTER_FAMILY_ARP
0022 struct nf_hook_entries __rcu *hooks_arp[NF_ARP_NUMHOOKS];
0023 #endif
0024 #ifdef CONFIG_NETFILTER_FAMILY_BRIDGE
0025 struct nf_hook_entries __rcu *hooks_bridge[NF_INET_NUMHOOKS];
0026 #endif
0027 #if IS_ENABLED(CONFIG_DECNET)
0028 struct nf_hook_entries __rcu *hooks_decnet[NF_DN_NUMHOOKS];
0029 #endif
0030 #if IS_ENABLED(CONFIG_NF_DEFRAG_IPV4)
0031 unsigned int defrag_ipv4_users;
0032 #endif
0033 #if IS_ENABLED(CONFIG_NF_DEFRAG_IPV6)
0034 unsigned int defrag_ipv6_users;
0035 #endif
0036 };
0037 #endif