4 #include <linux/list.h>
5 #include <linux/wait.h>
6 #include <linux/workqueue.h>
7 #include <linux/xfrm.h>
9 struct ctl_table_header
;
11 struct xfrm_policy_hash
{
12 struct hlist_head
*table
;
17 struct list_head state_all
;
19 * Hash table to find appropriate SA towards given target (endpoint of
20 * tunnel or destination of transport mode) allowed by selector.
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
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
;
35 wait_queue_head_t km_waitq
;
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
;
47 u32 sysctl_aevent_etime
;
48 u32 sysctl_aevent_rseqth
;
49 int sysctl_larval_drop
;
50 u32 sysctl_acq_expires
;
52 struct ctl_table_header
*sysctl_hdr
;