diff options
Diffstat (limited to 'include/net/netns')
-rw-r--r-- | include/net/netns/ipv4.h | 2 | ||||
-rw-r--r-- | include/net/netns/ipv6.h | 12 | ||||
-rw-r--r-- | include/net/netns/mib.h | 3 | ||||
-rw-r--r-- | include/net/netns/x_tables.h | 5 | ||||
-rw-r--r-- | include/net/netns/xfrm.h | 56 |
5 files changed, 78 insertions, 0 deletions
diff --git a/include/net/netns/ipv4.h b/include/net/netns/ipv4.h index ece1c926b5d1..977f482d97a9 100644 --- a/include/net/netns/ipv4.h +++ b/include/net/netns/ipv4.h | |||
@@ -49,6 +49,8 @@ struct netns_ipv4 { | |||
49 | int sysctl_icmp_ratelimit; | 49 | int sysctl_icmp_ratelimit; |
50 | int sysctl_icmp_ratemask; | 50 | int sysctl_icmp_ratemask; |
51 | int sysctl_icmp_errors_use_inbound_ifaddr; | 51 | int sysctl_icmp_errors_use_inbound_ifaddr; |
52 | int sysctl_rt_cache_rebuild_count; | ||
53 | int current_rt_cache_rebuild_count; | ||
52 | 54 | ||
53 | struct timer_list rt_secret_timer; | 55 | struct timer_list rt_secret_timer; |
54 | atomic_t rt_genid; | 56 | atomic_t rt_genid; |
diff --git a/include/net/netns/ipv6.h b/include/net/netns/ipv6.h index 2932721180c0..afab4e4cbac7 100644 --- a/include/net/netns/ipv6.h +++ b/include/net/netns/ipv6.h | |||
@@ -55,5 +55,17 @@ struct netns_ipv6 { | |||
55 | struct sock *ndisc_sk; | 55 | struct sock *ndisc_sk; |
56 | struct sock *tcp_sk; | 56 | struct sock *tcp_sk; |
57 | struct sock *igmp_sk; | 57 | struct sock *igmp_sk; |
58 | #ifdef CONFIG_IPV6_MROUTE | ||
59 | struct sock *mroute6_sk; | ||
60 | struct mfc6_cache **mfc6_cache_array; | ||
61 | struct mif_device *vif6_table; | ||
62 | int maxvif; | ||
63 | atomic_t cache_resolve_queue_len; | ||
64 | int mroute_do_assert; | ||
65 | int mroute_do_pim; | ||
66 | #ifdef CONFIG_IPV6_PIMSM_V2 | ||
67 | int mroute_reg_vif_num; | ||
68 | #endif | ||
69 | #endif | ||
58 | }; | 70 | }; |
59 | #endif | 71 | #endif |
diff --git a/include/net/netns/mib.h b/include/net/netns/mib.h index 10cb7c336de5..0b44112e2366 100644 --- a/include/net/netns/mib.h +++ b/include/net/netns/mib.h | |||
@@ -20,6 +20,9 @@ struct netns_mib { | |||
20 | DEFINE_SNMP_STAT(struct icmpv6_mib, icmpv6_statistics); | 20 | DEFINE_SNMP_STAT(struct icmpv6_mib, icmpv6_statistics); |
21 | DEFINE_SNMP_STAT(struct icmpv6msg_mib, icmpv6msg_statistics); | 21 | DEFINE_SNMP_STAT(struct icmpv6msg_mib, icmpv6msg_statistics); |
22 | #endif | 22 | #endif |
23 | #ifdef CONFIG_XFRM_STATISTICS | ||
24 | DEFINE_SNMP_STAT(struct linux_xfrm_mib, xfrm_statistics); | ||
25 | #endif | ||
23 | }; | 26 | }; |
24 | 27 | ||
25 | #endif | 28 | #endif |
diff --git a/include/net/netns/x_tables.h b/include/net/netns/x_tables.h index b8093971ccb4..9554a644a8f8 100644 --- a/include/net/netns/x_tables.h +++ b/include/net/netns/x_tables.h | |||
@@ -4,7 +4,12 @@ | |||
4 | #include <linux/list.h> | 4 | #include <linux/list.h> |
5 | #include <linux/netfilter.h> | 5 | #include <linux/netfilter.h> |
6 | 6 | ||
7 | struct ebt_table; | ||
8 | |||
7 | struct netns_xt { | 9 | struct netns_xt { |
8 | struct list_head tables[NFPROTO_NUMPROTO]; | 10 | struct list_head tables[NFPROTO_NUMPROTO]; |
11 | struct ebt_table *broute_table; | ||
12 | struct ebt_table *frame_filter; | ||
13 | struct ebt_table *frame_nat; | ||
9 | }; | 14 | }; |
10 | #endif | 15 | #endif |
diff --git a/include/net/netns/xfrm.h b/include/net/netns/xfrm.h new file mode 100644 index 000000000000..1ba912749caa --- /dev/null +++ b/include/net/netns/xfrm.h | |||
@@ -0,0 +1,56 @@ | |||
1 | #ifndef __NETNS_XFRM_H | ||
2 | #define __NETNS_XFRM_H | ||
3 | |||
4 | #include <linux/list.h> | ||
5 | #include <linux/wait.h> | ||
6 | #include <linux/workqueue.h> | ||
7 | #include <linux/xfrm.h> | ||
8 | |||
9 | struct ctl_table_header; | ||
10 | |||
11 | struct xfrm_policy_hash { | ||
12 | struct hlist_head *table; | ||
13 | unsigned int hmask; | ||
14 | }; | ||
15 | |||
16 | struct netns_xfrm { | ||
17 | struct list_head state_all; | ||
18 | /* | ||
19 | * Hash table to find appropriate SA towards given target (endpoint of | ||
20 | * tunnel or destination of transport mode) allowed by selector. | ||
21 | * | ||
22 | * Main use is finding SA after policy selected tunnel or transport | ||
23 | * mode. Also, it can be used by ah/esp icmp error handler to find | ||
24 | * offending SA. | ||
25 | */ | ||
26 | struct hlist_head *state_bydst; | ||
27 | struct hlist_head *state_bysrc; | ||
28 | struct hlist_head *state_byspi; | ||
29 | unsigned int state_hmask; | ||
30 | unsigned int state_num; | ||
31 | struct work_struct state_hash_work; | ||
32 | struct hlist_head state_gc_list; | ||
33 | struct work_struct state_gc_work; | ||
34 | |||
35 | wait_queue_head_t km_waitq; | ||
36 | |||
37 | struct list_head policy_all; | ||
38 | struct hlist_head *policy_byidx; | ||
39 | unsigned int policy_idx_hmask; | ||
40 | struct hlist_head policy_inexact[XFRM_POLICY_MAX * 2]; | ||
41 | struct xfrm_policy_hash policy_bydst[XFRM_POLICY_MAX * 2]; | ||
42 | unsigned int policy_count[XFRM_POLICY_MAX * 2]; | ||
43 | struct work_struct policy_hash_work; | ||
44 | |||
45 | struct sock *nlsk; | ||
46 | |||
47 | u32 sysctl_aevent_etime; | ||
48 | u32 sysctl_aevent_rseqth; | ||
49 | int sysctl_larval_drop; | ||
50 | u32 sysctl_acq_expires; | ||
51 | #ifdef CONFIG_SYSCTL | ||
52 | struct ctl_table_header *sysctl_hdr; | ||
53 | #endif | ||
54 | }; | ||
55 | |||
56 | #endif | ||