ipv4.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. * ipv4 in net namespaces
  3. */
  4. #ifndef __NETNS_IPV4_H__
  5. #define __NETNS_IPV4_H__
  6. #include <net/inet_frag.h>
  7. #include <linux/siphash.h>
  8. struct ctl_table_header;
  9. struct ipv4_devconf;
  10. struct fib_rules_ops;
  11. struct hlist_head;
  12. struct sock;
  13. struct netns_ipv4 {
  14. #ifdef CONFIG_SYSCTL
  15. struct ctl_table_header *forw_hdr;
  16. struct ctl_table_header *frags_hdr;
  17. struct ctl_table_header *ipv4_hdr;
  18. struct ctl_table_header *route_hdr;
  19. #endif
  20. struct ipv4_devconf *devconf_all;
  21. struct ipv4_devconf *devconf_dflt;
  22. #ifdef CONFIG_IP_MULTIPLE_TABLES
  23. struct fib_rules_ops *rules_ops;
  24. #endif
  25. struct hlist_head *fib_table_hash;
  26. struct sock *fibnl;
  27. struct sock **icmp_sk;
  28. struct sock *tcp_sock;
  29. struct netns_frags frags;
  30. #ifdef CONFIG_NETFILTER
  31. struct xt_table *iptable_filter;
  32. struct xt_table *iptable_mangle;
  33. struct xt_table *iptable_raw;
  34. struct xt_table *arptable_filter;
  35. #ifdef CONFIG_SECURITY
  36. struct xt_table *iptable_security;
  37. #endif
  38. struct xt_table *nat_table;
  39. #endif
  40. int sysctl_icmp_echo_ignore_all;
  41. int sysctl_icmp_echo_ignore_broadcasts;
  42. int sysctl_icmp_ignore_bogus_error_responses;
  43. int sysctl_icmp_ratelimit;
  44. int sysctl_icmp_ratemask;
  45. int sysctl_icmp_errors_use_inbound_ifaddr;
  46. int sysctl_rt_cache_rebuild_count;
  47. int current_rt_cache_rebuild_count;
  48. unsigned int sysctl_ping_group_range[2];
  49. long sysctl_tcp_mem[3];
  50. int sysctl_fwmark_reflect;
  51. int sysctl_tcp_fwmark_accept;
  52. atomic_t rt_genid;
  53. atomic_t dev_addr_genid;
  54. #ifdef CONFIG_IP_MROUTE
  55. #ifndef CONFIG_IP_MROUTE_MULTIPLE_TABLES
  56. struct mr_table *mrt;
  57. #else
  58. struct list_head mr_tables;
  59. struct fib_rules_ops *mr_rules_ops;
  60. #endif
  61. #endif
  62. siphash_key_t ip_id_key;
  63. };
  64. #endif