Daniel Lezcano | b0f159d | 2008-01-10 02:49:06 -0800 | [diff] [blame] | 1 | /* |
| 2 | * ipv6 in net namespaces |
| 3 | */ |
| 4 | |
Daniel Lezcano | e71e034 | 2008-01-10 02:56:03 -0800 | [diff] [blame] | 5 | #include <net/inet_frag.h> |
| 6 | |
Daniel Lezcano | b0f159d | 2008-01-10 02:49:06 -0800 | [diff] [blame] | 7 | #ifndef __NETNS_IPV6_H__ |
| 8 | #define __NETNS_IPV6_H__ |
Alexey Dobriyan | 86393e5 | 2009-08-29 01:34:49 +0000 | [diff] [blame] | 9 | #include <net/dst_ops.h> |
Daniel Lezcano | b0f159d | 2008-01-10 02:49:06 -0800 | [diff] [blame] | 10 | |
Daniel Lezcano | 760f2d0 | 2008-01-10 02:53:43 -0800 | [diff] [blame] | 11 | struct ctl_table_header; |
| 12 | |
| 13 | struct netns_sysctl_ipv6 { |
| 14 | #ifdef CONFIG_SYSCTL |
| 15 | struct ctl_table_header *table; |
Pavel Emelyanov | e4a2d5c | 2008-01-22 06:08:36 -0800 | [diff] [blame] | 16 | struct ctl_table_header *frags_hdr; |
Daniel Lezcano | 760f2d0 | 2008-01-10 02:53:43 -0800 | [diff] [blame] | 17 | #endif |
Daniel Lezcano | 99bc9c4 | 2008-01-10 02:54:53 -0800 | [diff] [blame] | 18 | int bindv6only; |
Daniel Lezcano | 4990509 | 2008-01-10 03:01:01 -0800 | [diff] [blame] | 19 | int flush_delay; |
| 20 | int ip6_rt_max_size; |
| 21 | int ip6_rt_gc_min_interval; |
| 22 | int ip6_rt_gc_timeout; |
| 23 | int ip6_rt_gc_interval; |
| 24 | int ip6_rt_gc_elasticity; |
| 25 | int ip6_rt_mtu_expires; |
| 26 | int ip6_rt_min_advmss; |
Daniel Lezcano | 41a7690 | 2008-01-10 03:02:40 -0800 | [diff] [blame] | 27 | int icmpv6_time; |
Daniel Lezcano | 760f2d0 | 2008-01-10 02:53:43 -0800 | [diff] [blame] | 28 | }; |
| 29 | |
Daniel Lezcano | b0f159d | 2008-01-10 02:49:06 -0800 | [diff] [blame] | 30 | struct netns_ipv6 { |
Daniel Lezcano | 760f2d0 | 2008-01-10 02:53:43 -0800 | [diff] [blame] | 31 | struct netns_sysctl_ipv6 sysctl; |
Pavel Emelyanov | e0da5a4 | 2008-01-10 17:42:55 -0800 | [diff] [blame] | 32 | struct ipv6_devconf *devconf_all; |
| 33 | struct ipv6_devconf *devconf_dflt; |
Pavel Emelyanov | ac18e75 | 2008-01-22 06:02:14 -0800 | [diff] [blame] | 34 | struct netns_frags frags; |
Alexey Dobriyan | 8280aa6 | 2008-01-31 04:04:13 -0800 | [diff] [blame] | 35 | #ifdef CONFIG_NETFILTER |
| 36 | struct xt_table *ip6table_filter; |
| 37 | struct xt_table *ip6table_mangle; |
| 38 | struct xt_table *ip6table_raw; |
Alexey Dobriyan | e9d3897 | 2010-01-18 08:08:37 +0100 | [diff] [blame] | 39 | #ifdef CONFIG_SECURITY |
James Morris | 17e6e59 | 2008-06-09 15:58:05 -0700 | [diff] [blame] | 40 | struct xt_table *ip6table_security; |
Alexey Dobriyan | 8280aa6 | 2008-01-31 04:04:13 -0800 | [diff] [blame] | 41 | #endif |
Alexey Dobriyan | e9d3897 | 2010-01-18 08:08:37 +0100 | [diff] [blame] | 42 | #endif |
Daniel Lezcano | 8ed6778 | 2008-03-04 13:48:30 -0800 | [diff] [blame] | 43 | struct rt6_info *ip6_null_entry; |
Benjamin Thery | c572872 | 2008-03-03 23:34:17 -0800 | [diff] [blame] | 44 | struct rt6_statistics *rt6_stats; |
Stephen Hemminger | 417f28b | 2008-07-22 14:33:45 -0700 | [diff] [blame] | 45 | struct timer_list ip6_fib_timer; |
Daniel Lezcano | 58f09b7 | 2008-03-03 23:25:27 -0800 | [diff] [blame] | 46 | struct hlist_head *fib_table_hash; |
| 47 | struct fib6_table *fib6_main_tbl; |
Alexey Dobriyan | 86393e5 | 2009-08-29 01:34:49 +0000 | [diff] [blame] | 48 | struct dst_ops ip6_dst_ops; |
Benjamin Thery | 6891a34 | 2008-03-04 13:49:47 -0800 | [diff] [blame] | 49 | unsigned int ip6_rt_gc_expire; |
| 50 | unsigned long ip6_rt_last_gc; |
Daniel Lezcano | 58f09b7 | 2008-03-03 23:25:27 -0800 | [diff] [blame] | 51 | #ifdef CONFIG_IPV6_MULTIPLE_TABLES |
Daniel Lezcano | 8ed6778 | 2008-03-04 13:48:30 -0800 | [diff] [blame] | 52 | struct rt6_info *ip6_prohibit_entry; |
| 53 | struct rt6_info *ip6_blk_hole_entry; |
Daniel Lezcano | 58f09b7 | 2008-03-03 23:25:27 -0800 | [diff] [blame] | 54 | struct fib6_table *fib6_local_tbl; |
Daniel Lezcano | dcabb81 | 2008-03-03 23:33:08 -0800 | [diff] [blame] | 55 | struct fib_rules_ops *fib6_rules_ops; |
Daniel Lezcano | 58f09b7 | 2008-03-03 23:25:27 -0800 | [diff] [blame] | 56 | #endif |
Denis V. Lunev | 98c6d1b | 2008-02-29 11:21:22 -0800 | [diff] [blame] | 57 | struct sock **icmp_sk; |
Daniel Lezcano | 1762f7e | 2008-03-07 11:15:34 -0800 | [diff] [blame] | 58 | struct sock *ndisc_sk; |
Daniel Lezcano | 93ec926 | 2008-03-07 11:16:02 -0800 | [diff] [blame] | 59 | struct sock *tcp_sk; |
Daniel Lezcano | b8ad0cb | 2008-03-07 11:16:55 -0800 | [diff] [blame] | 60 | struct sock *igmp_sk; |
Benjamin Thery | bd91b8b | 2008-12-10 16:07:08 -0800 | [diff] [blame] | 61 | #ifdef CONFIG_IPV6_MROUTE |
| 62 | struct sock *mroute6_sk; |
Patrick McHardy | c476efb | 2010-05-11 14:40:48 +0200 | [diff] [blame^] | 63 | struct timer_list ipmr_expire_timer; |
| 64 | struct mfc6_cache *mfc6_unres_queue; |
Benjamin Thery | 4a6258a | 2008-12-10 16:24:07 -0800 | [diff] [blame] | 65 | struct mfc6_cache **mfc6_cache_array; |
Benjamin Thery | 4e16880 | 2008-12-10 16:15:08 -0800 | [diff] [blame] | 66 | struct mif_device *vif6_table; |
| 67 | int maxvif; |
Benjamin Thery | 4045e57 | 2008-12-10 16:27:21 -0800 | [diff] [blame] | 68 | atomic_t cache_resolve_queue_len; |
Benjamin Thery | a21f3f9 | 2008-12-10 16:28:44 -0800 | [diff] [blame] | 69 | int mroute_do_assert; |
| 70 | int mroute_do_pim; |
Benjamin Thery | 950d570 | 2008-12-10 16:29:24 -0800 | [diff] [blame] | 71 | #ifdef CONFIG_IPV6_PIMSM_V2 |
| 72 | int mroute_reg_vif_num; |
| 73 | #endif |
Benjamin Thery | bd91b8b | 2008-12-10 16:07:08 -0800 | [diff] [blame] | 74 | #endif |
Daniel Lezcano | b0f159d | 2008-01-10 02:49:06 -0800 | [diff] [blame] | 75 | }; |
| 76 | #endif |