ipv6.h 1.6 KB
Newer Older
1 2 3 4
/*
 * ipv6 in net namespaces
 */

5 6
#include <net/inet_frag.h>

7 8 9
#ifndef __NETNS_IPV6_H__
#define __NETNS_IPV6_H__

10 11 12 13 14
struct ctl_table_header;

struct netns_sysctl_ipv6 {
#ifdef CONFIG_SYSCTL
	struct ctl_table_header *table;
15
	struct ctl_table_header *frags_hdr;
16
#endif
17
	int bindv6only;
18 19 20 21 22 23 24 25
	int flush_delay;
	int ip6_rt_max_size;
	int ip6_rt_gc_min_interval;
	int ip6_rt_gc_timeout;
	int ip6_rt_gc_interval;
	int ip6_rt_gc_elasticity;
	int ip6_rt_mtu_expires;
	int ip6_rt_min_advmss;
26
	int icmpv6_time;
27 28
};

29
struct netns_ipv6 {
30
	struct netns_sysctl_ipv6 sysctl;
31 32
	struct ipv6_devconf	*devconf_all;
	struct ipv6_devconf	*devconf_dflt;
33
	struct netns_frags	frags;
34 35 36 37
#ifdef CONFIG_NETFILTER
	struct xt_table		*ip6table_filter;
	struct xt_table		*ip6table_mangle;
	struct xt_table		*ip6table_raw;
38
	struct xt_table		*ip6table_security;
39
#endif
40
	struct rt6_info         *ip6_null_entry;
41
	struct rt6_statistics   *rt6_stats;
42
	struct timer_list       ip6_fib_timer;
43 44
	struct hlist_head       *fib_table_hash;
	struct fib6_table       *fib6_main_tbl;
45
	struct dst_ops		*ip6_dst_ops;
46 47
	unsigned int		 ip6_rt_gc_expire;
	unsigned long		 ip6_rt_last_gc;
48
#ifdef CONFIG_IPV6_MULTIPLE_TABLES
49 50
	struct rt6_info         *ip6_prohibit_entry;
	struct rt6_info         *ip6_blk_hole_entry;
51
	struct fib6_table       *fib6_local_tbl;
52
	struct fib_rules_ops    *fib6_rules_ops;
53
#endif
54
	struct sock		**icmp_sk;
55
	struct sock             *ndisc_sk;
56
	struct sock             *tcp_sk;
57
	struct sock             *igmp_sk;
58 59
#ifdef CONFIG_IPV6_MROUTE
	struct sock		*mroute6_sk;
60
	struct mfc6_cache	**mfc6_cache_array;
61 62
	struct mif_device	*vif6_table;
	int			maxvif;
63
#endif
64 65
};
#endif