ipv4.h 745 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * ipv4 in net namespaces
  3. */
  4. #ifndef __NETNS_IPV4_H__
  5. #define __NETNS_IPV4_H__
  6. #include <net/inet_frag.h>
  7. struct ctl_table_header;
  8. struct ipv4_devconf;
  9. struct fib_rules_ops;
  10. struct hlist_head;
  11. struct sock;
  12. struct netns_ipv4 {
  13. #ifdef CONFIG_SYSCTL
  14. struct ctl_table_header *forw_hdr;
  15. struct ctl_table_header *frags_hdr;
  16. #endif
  17. struct ipv4_devconf *devconf_all;
  18. struct ipv4_devconf *devconf_dflt;
  19. #ifdef CONFIG_IP_MULTIPLE_TABLES
  20. struct fib_rules_ops *rules_ops;
  21. #endif
  22. struct hlist_head *fib_table_hash;
  23. struct sock *fibnl;
  24. struct netns_frags frags;
  25. #ifdef CONFIG_NETFILTER
  26. struct xt_table *iptable_filter;
  27. struct xt_table *iptable_mangle;
  28. struct xt_table *iptable_raw;
  29. struct xt_table *arptable_filter;
  30. #endif
  31. };
  32. #endif