ipv4.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. struct ctl_table_header *ipv4_hdr;
  17. struct ctl_table_header *route_hdr;
  18. #endif
  19. struct ipv4_devconf *devconf_all;
  20. struct ipv4_devconf *devconf_dflt;
  21. #ifdef CONFIG_IP_MULTIPLE_TABLES
  22. struct fib_rules_ops *rules_ops;
  23. #endif
  24. struct hlist_head *fib_table_hash;
  25. struct sock *fibnl;
  26. struct sock **icmp_sk;
  27. struct sock *tcp_sock;
  28. struct netns_frags frags;
  29. #ifdef CONFIG_NETFILTER
  30. struct xt_table *iptable_filter;
  31. struct xt_table *iptable_mangle;
  32. struct xt_table *iptable_raw;
  33. struct xt_table *arptable_filter;
  34. #ifdef CONFIG_SECURITY
  35. struct xt_table *iptable_security;
  36. #endif
  37. struct xt_table *nat_table;
  38. struct hlist_head *nat_bysource;
  39. unsigned int nat_htable_size;
  40. int nat_vmalloced;
  41. #endif
  42. int sysctl_icmp_echo_ignore_all;
  43. int sysctl_icmp_echo_ignore_broadcasts;
  44. int sysctl_icmp_ignore_bogus_error_responses;
  45. int sysctl_icmp_ratelimit;
  46. int sysctl_icmp_ratemask;
  47. int sysctl_icmp_errors_use_inbound_ifaddr;
  48. int sysctl_rt_cache_rebuild_count;
  49. int current_rt_cache_rebuild_count;
  50. atomic_t rt_genid;
  51. #ifdef CONFIG_IP_MROUTE
  52. #ifndef CONFIG_IP_MROUTE_MULTIPLE_TABLES
  53. struct mr_table *mrt;
  54. #else
  55. struct list_head mr_tables;
  56. struct fib_rules_ops *mr_rules_ops;
  57. #endif
  58. #endif
  59. };
  60. #endif