Merge remote-tracking branch 'asoc/fix/rcar' into asoc-linus
[deliverable/linux.git] / include / net / netns / ipv6.h
CommitLineData
b0f159db
DL
1/*
2 * ipv6 in net namespaces
3 */
4
e71e0349
DL
5#include <net/inet_frag.h>
6
b0f159db
DL
7#ifndef __NETNS_IPV6_H__
8#define __NETNS_IPV6_H__
86393e52 9#include <net/dst_ops.h>
b0f159db 10
760f2d01
DL
11struct ctl_table_header;
12
13struct netns_sysctl_ipv6 {
14#ifdef CONFIG_SYSCTL
6dceb036
EB
15 struct ctl_table_header *hdr;
16 struct ctl_table_header *route_hdr;
17 struct ctl_table_header *icmp_hdr;
e4a2d5c2 18 struct ctl_table_header *frags_hdr;
8d068875 19 struct ctl_table_header *xfrm6_hdr;
760f2d01 20#endif
99bc9c4e 21 int bindv6only;
4990509f
DL
22 int flush_delay;
23 int ip6_rt_max_size;
24 int ip6_rt_gc_min_interval;
25 int ip6_rt_gc_timeout;
26 int ip6_rt_gc_interval;
27 int ip6_rt_gc_elasticity;
28 int ip6_rt_mtu_expires;
29 int ip6_rt_min_advmss;
6444f72b 30 int flowlabel_consistency;
cb1ce2ef 31 int auto_flowlabels;
41a76906 32 int icmpv6_time;
ec35b61e 33 int anycast_src_echo_reply;
35a256fe 34 int ip_nonlocal_bind;
e110861f 35 int fwmark_reflect;
1855b7c3
HFS
36 int idgen_retries;
37 int idgen_delay;
82a584b7 38 int flowlabel_state_ranges;
760f2d01
DL
39};
40
b0f159db 41struct netns_ipv6 {
760f2d01 42 struct netns_sysctl_ipv6 sysctl;
e0da5a48
PE
43 struct ipv6_devconf *devconf_all;
44 struct ipv6_devconf *devconf_dflt;
c8a627ed 45 struct inet_peer_base *peers;
ac18e750 46 struct netns_frags frags;
8280aa61
AD
47#ifdef CONFIG_NETFILTER
48 struct xt_table *ip6table_filter;
49 struct xt_table *ip6table_mangle;
50 struct xt_table *ip6table_raw;
e9d3897c 51#ifdef CONFIG_SECURITY
17e6e59f 52 struct xt_table *ip6table_security;
e9d3897c 53#endif
58a317f1 54 struct xt_table *ip6table_nat;
58f09b78 55#endif
8ed67789 56 struct rt6_info *ip6_null_entry;
c572872f 57 struct rt6_statistics *rt6_stats;
417f28bb 58 struct timer_list ip6_fib_timer;
58f09b78
DL
59 struct hlist_head *fib_table_hash;
60 struct fib6_table *fib6_main_tbl;
9a03cd8f 61 struct list_head fib6_walkers;
86393e52 62 struct dst_ops ip6_dst_ops;
9a03cd8f 63 rwlock_t fib6_walker_lock;
3dc94f93 64 spinlock_t fib6_gc_lock;
6891a346
BT
65 unsigned int ip6_rt_gc_expire;
66 unsigned long ip6_rt_last_gc;
58f09b78 67#ifdef CONFIG_IPV6_MULTIPLE_TABLES
8ed67789
DL
68 struct rt6_info *ip6_prohibit_entry;
69 struct rt6_info *ip6_blk_hole_entry;
58f09b78 70 struct fib6_table *fib6_local_tbl;
dcabb819 71 struct fib_rules_ops *fib6_rules_ops;
8280aa61 72#endif
98c6d1b2 73 struct sock **icmp_sk;
1762f7e8 74 struct sock *ndisc_sk;
93ec926b 75 struct sock *tcp_sk;
b8ad0cbc 76 struct sock *igmp_sk;
93a714d6 77 struct sock *mc_autojoin_sk;
bd91b8bf 78#ifdef CONFIG_IPV6_MROUTE
d1db275d 79#ifndef CONFIG_IPV6_MROUTE_MULTIPLE_TABLES
6bd52143 80 struct mr6_table *mrt6;
d1db275d
PM
81#else
82 struct list_head mr6_tables;
83 struct fib_rules_ops *mr6_rules_ops;
84#endif
bd91b8bf 85#endif
63998ac2 86 atomic_t dev_addr_genid;
812918c4 87 atomic_t fib6_sernum;
b0f159db 88};
c038a767
AW
89
90#if IS_ENABLED(CONFIG_NF_DEFRAG_IPV6)
91struct netns_nf_frag {
92 struct netns_sysctl_ipv6 sysctl;
93 struct netns_frags frags;
94};
95#endif
96
b0f159db 97#endif
This page took 0.703772 seconds and 5 git commands to generate.