PageRenderTime 48ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/include/net/netns/ipv6.h

http://github.com/mirrors/linux
C Header | 126 lines | 115 code | 7 blank | 4 comment | 0 complexity | 8ee11b550f0a27952b5a82809a421cd5 MD5 | raw file
Possible License(s): AGPL-1.0, GPL-2.0, LGPL-2.0
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * ipv6 in net namespaces
  4. */
  5. #include <net/inet_frag.h>
  6. #ifndef __NETNS_IPV6_H__
  7. #define __NETNS_IPV6_H__
  8. #include <net/dst_ops.h>
  9. #include <uapi/linux/icmpv6.h>
  10. struct ctl_table_header;
  11. struct netns_sysctl_ipv6 {
  12. #ifdef CONFIG_SYSCTL
  13. struct ctl_table_header *hdr;
  14. struct ctl_table_header *route_hdr;
  15. struct ctl_table_header *icmp_hdr;
  16. struct ctl_table_header *frags_hdr;
  17. struct ctl_table_header *xfrm6_hdr;
  18. #endif
  19. int bindv6only;
  20. int flush_delay;
  21. int ip6_rt_max_size;
  22. int ip6_rt_gc_min_interval;
  23. int ip6_rt_gc_timeout;
  24. int ip6_rt_gc_interval;
  25. int ip6_rt_gc_elasticity;
  26. int ip6_rt_mtu_expires;
  27. int ip6_rt_min_advmss;
  28. int multipath_hash_policy;
  29. int flowlabel_consistency;
  30. int auto_flowlabels;
  31. int icmpv6_time;
  32. int icmpv6_echo_ignore_all;
  33. int icmpv6_echo_ignore_multicast;
  34. int icmpv6_echo_ignore_anycast;
  35. DECLARE_BITMAP(icmpv6_ratemask, ICMPV6_MSG_MAX + 1);
  36. unsigned long *icmpv6_ratemask_ptr;
  37. int anycast_src_echo_reply;
  38. int ip_nonlocal_bind;
  39. int fwmark_reflect;
  40. int idgen_retries;
  41. int idgen_delay;
  42. int flowlabel_state_ranges;
  43. int flowlabel_reflect;
  44. int max_dst_opts_cnt;
  45. int max_hbh_opts_cnt;
  46. int max_dst_opts_len;
  47. int max_hbh_opts_len;
  48. int seg6_flowlabel;
  49. bool skip_notify_on_dev_down;
  50. };
  51. struct netns_ipv6 {
  52. struct netns_sysctl_ipv6 sysctl;
  53. struct ipv6_devconf *devconf_all;
  54. struct ipv6_devconf *devconf_dflt;
  55. struct inet_peer_base *peers;
  56. struct fqdir *fqdir;
  57. #ifdef CONFIG_NETFILTER
  58. struct xt_table *ip6table_filter;
  59. struct xt_table *ip6table_mangle;
  60. struct xt_table *ip6table_raw;
  61. #ifdef CONFIG_SECURITY
  62. struct xt_table *ip6table_security;
  63. #endif
  64. struct xt_table *ip6table_nat;
  65. #endif
  66. struct fib6_info *fib6_null_entry;
  67. struct rt6_info *ip6_null_entry;
  68. struct rt6_statistics *rt6_stats;
  69. struct timer_list ip6_fib_timer;
  70. struct hlist_head *fib_table_hash;
  71. struct fib6_table *fib6_main_tbl;
  72. struct list_head fib6_walkers;
  73. struct dst_ops ip6_dst_ops;
  74. rwlock_t fib6_walker_lock;
  75. spinlock_t fib6_gc_lock;
  76. unsigned int ip6_rt_gc_expire;
  77. unsigned long ip6_rt_last_gc;
  78. #ifdef CONFIG_IPV6_MULTIPLE_TABLES
  79. unsigned int fib6_rules_require_fldissect;
  80. bool fib6_has_custom_rules;
  81. #ifdef CONFIG_IPV6_SUBTREES
  82. unsigned int fib6_routes_require_src;
  83. #endif
  84. struct rt6_info *ip6_prohibit_entry;
  85. struct rt6_info *ip6_blk_hole_entry;
  86. struct fib6_table *fib6_local_tbl;
  87. struct fib_rules_ops *fib6_rules_ops;
  88. #endif
  89. struct sock * __percpu *icmp_sk;
  90. struct sock *ndisc_sk;
  91. struct sock *tcp_sk;
  92. struct sock *igmp_sk;
  93. struct sock *mc_autojoin_sk;
  94. #ifdef CONFIG_IPV6_MROUTE
  95. #ifndef CONFIG_IPV6_MROUTE_MULTIPLE_TABLES
  96. struct mr_table *mrt6;
  97. #else
  98. struct list_head mr6_tables;
  99. struct fib_rules_ops *mr6_rules_ops;
  100. #endif
  101. #endif
  102. atomic_t dev_addr_genid;
  103. atomic_t fib6_sernum;
  104. struct seg6_pernet_data *seg6_data;
  105. struct fib_notifier_ops *notifier_ops;
  106. struct fib_notifier_ops *ip6mr_notifier_ops;
  107. unsigned int ipmr_seq; /* protected by rtnl_mutex */
  108. struct {
  109. struct hlist_head head;
  110. spinlock_t lock;
  111. u32 seq;
  112. } ip6addrlbl_table;
  113. };
  114. #if IS_ENABLED(CONFIG_NF_DEFRAG_IPV6)
  115. struct netns_nf_frag {
  116. struct fqdir *fqdir;
  117. };
  118. #endif
  119. #endif