]>
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> |
9d4139c7 | 7 | |
d62ddc21 | 8 | struct netns_xfrm { |
9d4139c7 | 9 | struct list_head state_all; |
73d189dc AD |
10 | /* |
11 | * Hash table to find appropriate SA towards given target (endpoint of | |
12 | * tunnel or destination of transport mode) allowed by selector. | |
13 | * | |
14 | * Main use is finding SA after policy selected tunnel or transport | |
15 | * mode. Also, it can be used by ah/esp icmp error handler to find | |
16 | * offending SA. | |
17 | */ | |
18 | struct hlist_head *state_bydst; | |
d320bbb3 | 19 | struct hlist_head *state_bysrc; |
b754a4fd | 20 | struct hlist_head *state_byspi; |
529983ec | 21 | unsigned int state_hmask; |
0bf7c5b0 | 22 | unsigned int state_num; |
63082733 | 23 | struct work_struct state_hash_work; |
b8a0ae20 | 24 | struct hlist_head state_gc_list; |
c7837144 | 25 | struct work_struct state_gc_work; |
50a30657 AD |
26 | |
27 | wait_queue_head_t km_waitq; | |
d62ddc21 AD |
28 | }; |
29 | ||
30 | #endif |