xfrm.h 811 字节
Newer Older
1 2 3
#ifndef __NETNS_XFRM_H
#define __NETNS_XFRM_H

4
#include <linux/list.h>
A
Alexey Dobriyan 已提交
5
#include <linux/wait.h>
6
#include <linux/workqueue.h>
7

8
struct netns_xfrm {
9
	struct list_head	state_all;
10 11 12 13 14 15 16 17 18
	/*
	 * Hash table to find appropriate SA towards given target (endpoint of
	 * tunnel or destination of transport mode) allowed by selector.
	 *
	 * Main use is finding SA after policy selected tunnel or transport
	 * mode. Also, it can be used by ah/esp icmp error handler to find
	 * offending SA.
	 */
	struct hlist_head	*state_bydst;
19
	struct hlist_head	*state_bysrc;
20
	struct hlist_head	*state_byspi;
21
	unsigned int		state_hmask;
22
	unsigned int		state_num;
23
	struct work_struct	state_hash_work;
24
	struct hlist_head	state_gc_list;
25
	struct work_struct	state_gc_work;
A
Alexey Dobriyan 已提交
26 27

	wait_queue_head_t	km_waitq;
28 29

	struct list_head	policy_all;
30 31 32
};

#endif