Commit | Line | Data |
---|---|---|
d62ddc21 AD |
1 | #ifndef __NETNS_XFRM_H |
2 | #define __NETNS_XFRM_H | |
3 | ||
9d4139c7 | 4 | #include <linux/list.h> |
63082733 | 5 | #include <linux/workqueue.h> |
9d4139c7 | 6 | |
d62ddc21 | 7 | struct netns_xfrm { |
9d4139c7 | 8 | struct list_head state_all; |
73d189dc AD |
9 | /* |
10 | * Hash table to find appropriate SA towards given target (endpoint of | |
11 | * tunnel or destination of transport mode) allowed by selector. | |
12 | * | |
13 | * Main use is finding SA after policy selected tunnel or transport | |
14 | * mode. Also, it can be used by ah/esp icmp error handler to find | |
15 | * offending SA. | |
16 | */ | |
17 | struct hlist_head *state_bydst; | |
d320bbb3 | 18 | struct hlist_head *state_bysrc; |
b754a4fd | 19 | struct hlist_head *state_byspi; |
529983ec | 20 | unsigned int state_hmask; |
0bf7c5b0 | 21 | unsigned int state_num; |
63082733 | 22 | struct work_struct state_hash_work; |
b8a0ae20 | 23 | struct hlist_head state_gc_list; |
c7837144 | 24 | struct work_struct state_gc_work; |
d62ddc21 AD |
25 | }; |
26 | ||
27 | #endif |