blob: dfeb2d7c425b52cfb69831221b9dc6768830bfc9 [file] [log] [blame]
Daniel Lezcanob0f159d2008-01-10 02:49:06 -08001/*
2 * ipv6 in net namespaces
3 */
4
Daniel Lezcanoe71e0342008-01-10 02:56:03 -08005#include <net/inet_frag.h>
6
Daniel Lezcanob0f159d2008-01-10 02:49:06 -08007#ifndef __NETNS_IPV6_H__
8#define __NETNS_IPV6_H__
Alexey Dobriyan86393e52009-08-29 01:34:49 +00009#include <net/dst_ops.h>
Daniel Lezcanob0f159d2008-01-10 02:49:06 -080010
Daniel Lezcano760f2d02008-01-10 02:53:43 -080011struct ctl_table_header;
12
13struct netns_sysctl_ipv6 {
14#ifdef CONFIG_SYSCTL
15 struct ctl_table_header *table;
Pavel Emelyanove4a2d5c2008-01-22 06:08:36 -080016 struct ctl_table_header *frags_hdr;
Daniel Lezcano760f2d02008-01-10 02:53:43 -080017#endif
Daniel Lezcano99bc9c42008-01-10 02:54:53 -080018 int bindv6only;
Daniel Lezcano49905092008-01-10 03:01:01 -080019 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 Lezcano41a76902008-01-10 03:02:40 -080027 int icmpv6_time;
Daniel Lezcano760f2d02008-01-10 02:53:43 -080028};
29
Daniel Lezcanob0f159d2008-01-10 02:49:06 -080030struct netns_ipv6 {
Daniel Lezcano760f2d02008-01-10 02:53:43 -080031 struct netns_sysctl_ipv6 sysctl;
Pavel Emelyanove0da5a42008-01-10 17:42:55 -080032 struct ipv6_devconf *devconf_all;
33 struct ipv6_devconf *devconf_dflt;
Pavel Emelyanovac18e752008-01-22 06:02:14 -080034 struct netns_frags frags;
Alexey Dobriyan8280aa62008-01-31 04:04:13 -080035#ifdef CONFIG_NETFILTER
36 struct xt_table *ip6table_filter;
37 struct xt_table *ip6table_mangle;
38 struct xt_table *ip6table_raw;
James Morris17e6e592008-06-09 15:58:05 -070039 struct xt_table *ip6table_security;
Alexey Dobriyan8280aa62008-01-31 04:04:13 -080040#endif
Daniel Lezcano8ed67782008-03-04 13:48:30 -080041 struct rt6_info *ip6_null_entry;
Benjamin Theryc5728722008-03-03 23:34:17 -080042 struct rt6_statistics *rt6_stats;
Stephen Hemminger417f28b2008-07-22 14:33:45 -070043 struct timer_list ip6_fib_timer;
Daniel Lezcano58f09b72008-03-03 23:25:27 -080044 struct hlist_head *fib_table_hash;
45 struct fib6_table *fib6_main_tbl;
Alexey Dobriyan86393e52009-08-29 01:34:49 +000046 struct dst_ops ip6_dst_ops;
Benjamin Thery6891a342008-03-04 13:49:47 -080047 unsigned int ip6_rt_gc_expire;
48 unsigned long ip6_rt_last_gc;
Daniel Lezcano58f09b72008-03-03 23:25:27 -080049#ifdef CONFIG_IPV6_MULTIPLE_TABLES
Daniel Lezcano8ed67782008-03-04 13:48:30 -080050 struct rt6_info *ip6_prohibit_entry;
51 struct rt6_info *ip6_blk_hole_entry;
Daniel Lezcano58f09b72008-03-03 23:25:27 -080052 struct fib6_table *fib6_local_tbl;
Daniel Lezcanodcabb812008-03-03 23:33:08 -080053 struct fib_rules_ops *fib6_rules_ops;
Daniel Lezcano58f09b72008-03-03 23:25:27 -080054#endif
Denis V. Lunev98c6d1b2008-02-29 11:21:22 -080055 struct sock **icmp_sk;
Daniel Lezcano1762f7e2008-03-07 11:15:34 -080056 struct sock *ndisc_sk;
Daniel Lezcano93ec9262008-03-07 11:16:02 -080057 struct sock *tcp_sk;
Daniel Lezcanob8ad0cb2008-03-07 11:16:55 -080058 struct sock *igmp_sk;
Benjamin Therybd91b8b2008-12-10 16:07:08 -080059#ifdef CONFIG_IPV6_MROUTE
60 struct sock *mroute6_sk;
Benjamin Thery4a6258a2008-12-10 16:24:07 -080061 struct mfc6_cache **mfc6_cache_array;
Benjamin Thery4e168802008-12-10 16:15:08 -080062 struct mif_device *vif6_table;
63 int maxvif;
Benjamin Thery4045e572008-12-10 16:27:21 -080064 atomic_t cache_resolve_queue_len;
Benjamin Therya21f3f92008-12-10 16:28:44 -080065 int mroute_do_assert;
66 int mroute_do_pim;
Benjamin Thery950d5702008-12-10 16:29:24 -080067#ifdef CONFIG_IPV6_PIMSM_V2
68 int mroute_reg_vif_num;
69#endif
Benjamin Therybd91b8b2008-12-10 16:07:08 -080070#endif
Daniel Lezcanob0f159d2008-01-10 02:49:06 -080071};
72#endif