blob: 58487b1cc99ab09e9d5f00e1cc9608ac9db606e9 [file] [log] [blame]
Gao fengf3c1a442013-03-24 23:50:39 +00001#ifndef __NETNS_NETFILTER_H
2#define __NETNS_NETFILTER_H
3
Pablo Neira Ayusoa2636532015-06-17 10:28:27 -05004#include <linux/netfilter_defs.h>
Gao feng30e0c6a2013-03-24 23:50:40 +00005
Pablo Neira Ayuso10c04a82015-06-17 10:28:26 -05006struct proc_dir_entry;
Gao feng30e0c6a2013-03-24 23:50:40 +00007struct nf_logger;
Eric W. Biedermandc3ee322016-05-13 21:18:52 -05008struct nf_queue_handler;
Gao fengf3c1a442013-03-24 23:50:39 +00009
10struct netns_nf {
11#if defined CONFIG_PROC_FS
12 struct proc_dir_entry *proc_netfilter;
13#endif
Eric W. Biedermandc3ee322016-05-13 21:18:52 -050014 const struct nf_queue_handler __rcu *queue_handler;
Gao feng30e0c6a2013-03-24 23:50:40 +000015 const struct nf_logger __rcu *nf_loggers[NFPROTO_NUMPROTO];
16#ifdef CONFIG_SYSCTL
17 struct ctl_table_header *nf_log_dir_header;
18#endif
Aaron Conolee3b37f12016-09-21 11:35:07 -040019 struct nf_hook_entry __rcu *hooks[NFPROTO_NUMPROTO][NF_MAX_HOOKS];
Gao fengf3c1a442013-03-24 23:50:39 +000020};
21#endif