]>
Commit | Line | Data |
---|---|---|
d62ddc21 AD |
1 | #ifndef __NETNS_XFRM_H |
2 | #define __NETNS_XFRM_H | |
3 | ||
9d4139c7 | 4 | #include <linux/list.h> |
50a30657 | 5 | #include <linux/wait.h> |
63082733 | 6 | #include <linux/workqueue.h> |
8b18f8ea | 7 | #include <linux/xfrm.h> |
9d4139c7 | 8 | |
b27aeadb AD |
9 | struct ctl_table_header; |
10 | ||
a35f6c5d AD |
11 | struct xfrm_policy_hash { |
12 | struct hlist_head *table; | |
13 | unsigned int hmask; | |
14 | }; | |
15 | ||
d62ddc21 | 16 | struct netns_xfrm { |
9d4139c7 | 17 | struct list_head state_all; |
73d189dc AD |
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; | |
d320bbb3 | 27 | struct hlist_head *state_bysrc; |
b754a4fd | 28 | struct hlist_head *state_byspi; |
529983ec | 29 | unsigned int state_hmask; |
0bf7c5b0 | 30 | unsigned int state_num; |
63082733 | 31 | struct work_struct state_hash_work; |
b8a0ae20 | 32 | struct hlist_head state_gc_list; |
c7837144 | 33 | struct work_struct state_gc_work; |
50a30657 AD |
34 | |
35 | wait_queue_head_t km_waitq; | |
adfcf0b2 AD |
36 | |
37 | struct list_head policy_all; | |
93b851c1 | 38 | struct hlist_head *policy_byidx; |
8100bea7 | 39 | unsigned int policy_idx_hmask; |
8b18f8ea | 40 | struct hlist_head policy_inexact[XFRM_POLICY_MAX * 2]; |
a35f6c5d | 41 | struct xfrm_policy_hash policy_bydst[XFRM_POLICY_MAX * 2]; |
dc2caba7 | 42 | unsigned int policy_count[XFRM_POLICY_MAX * 2]; |
66caf628 | 43 | struct work_struct policy_hash_work; |
a6483b79 AD |
44 | |
45 | struct sock *nlsk; | |
b27aeadb AD |
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 | |
d62ddc21 AD |
54 | }; |
55 | ||
56 | #endif |