ipv6.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * ipv6 in net namespaces
  3. */
  4. #include <net/inet_frag.h>
  5. #ifndef __NETNS_IPV6_H__
  6. #define __NETNS_IPV6_H__
  7. #include <net/dst_ops.h>
  8. struct ctl_table_header;
  9. struct netns_sysctl_ipv6 {
  10. #ifdef CONFIG_SYSCTL
  11. struct ctl_table_header *hdr;
  12. struct ctl_table_header *route_hdr;
  13. struct ctl_table_header *icmp_hdr;
  14. struct ctl_table_header *frags_hdr;
  15. #endif
  16. int bindv6only;
  17. int flush_delay;
  18. int ip6_rt_max_size;
  19. int ip6_rt_gc_min_interval;
  20. int ip6_rt_gc_timeout;
  21. int ip6_rt_gc_interval;
  22. int ip6_rt_gc_elasticity;
  23. int ip6_rt_mtu_expires;
  24. int ip6_rt_min_advmss;
  25. int icmpv6_time;
  26. };
  27. struct netns_ipv6 {
  28. struct netns_sysctl_ipv6 sysctl;
  29. struct ipv6_devconf *devconf_all;
  30. struct ipv6_devconf *devconf_dflt;
  31. struct inet_peer_base *peers;
  32. struct netns_frags frags;
  33. #ifdef CONFIG_NETFILTER
  34. struct xt_table *ip6table_filter;
  35. struct xt_table *ip6table_mangle;
  36. struct xt_table *ip6table_raw;
  37. #ifdef CONFIG_SECURITY
  38. struct xt_table *ip6table_security;
  39. #endif
  40. #endif
  41. struct rt6_info *ip6_null_entry;
  42. struct rt6_statistics *rt6_stats;
  43. struct timer_list ip6_fib_timer;
  44. struct hlist_head *fib_table_hash;
  45. struct fib6_table *fib6_main_tbl;
  46. struct dst_ops ip6_dst_ops;
  47. unsigned int ip6_rt_gc_expire;
  48. unsigned long ip6_rt_last_gc;
  49. #ifdef CONFIG_IPV6_MULTIPLE_TABLES
  50. struct rt6_info *ip6_prohibit_entry;
  51. struct rt6_info *ip6_blk_hole_entry;
  52. struct fib6_table *fib6_local_tbl;
  53. struct fib_rules_ops *fib6_rules_ops;
  54. #endif
  55. struct sock **icmp_sk;
  56. struct sock *ndisc_sk;
  57. struct sock *tcp_sk;
  58. struct sock *igmp_sk;
  59. #ifdef CONFIG_IPV6_MROUTE
  60. #ifndef CONFIG_IPV6_MROUTE_MULTIPLE_TABLES
  61. struct mr6_table *mrt6;
  62. #else
  63. struct list_head mr6_tables;
  64. struct fib_rules_ops *mr6_rules_ops;
  65. #endif
  66. #endif
  67. };
  68. #endif