ipv4.h 1.7 KB

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