netfilter.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __NETNS_NETFILTER_H
  3. #define __NETNS_NETFILTER_H
  4. #include <linux/netfilter_defs.h>
  5. struct proc_dir_entry;
  6. struct nf_logger;
  7. struct nf_queue_handler;
  8. struct netns_nf {
  9. #if defined CONFIG_PROC_FS
  10. struct proc_dir_entry *proc_netfilter;
  11. #endif
  12. const struct nf_queue_handler __rcu *queue_handler;
  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. struct nf_hook_entries __rcu *hooks_ipv4[NF_INET_NUMHOOKS];
  18. struct nf_hook_entries __rcu *hooks_ipv6[NF_INET_NUMHOOKS];
  19. #ifdef CONFIG_NETFILTER_FAMILY_ARP
  20. struct nf_hook_entries __rcu *hooks_arp[NF_ARP_NUMHOOKS];
  21. #endif
  22. #ifdef CONFIG_NETFILTER_FAMILY_BRIDGE
  23. struct nf_hook_entries __rcu *hooks_bridge[NF_INET_NUMHOOKS];
  24. #endif
  25. #if IS_ENABLED(CONFIG_DECNET)
  26. struct nf_hook_entries __rcu *hooks_decnet[NF_DN_NUMHOOKS];
  27. #endif
  28. #if IS_ENABLED(CONFIG_NF_DEFRAG_IPV4)
  29. bool defrag_ipv4;
  30. #endif
  31. #if IS_ENABLED(CONFIG_NF_DEFRAG_IPV6)
  32. bool defrag_ipv6;
  33. #endif
  34. };
  35. #endif