]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - include/net/netns/xfrm.h
c7568315f16c1f66e01241aa3fe2820171f9bc93
[linux-2.6-omap-h63xx.git] / include / net / netns / xfrm.h
1 #ifndef __NETNS_XFRM_H
2 #define __NETNS_XFRM_H
3
4 #include <linux/list.h>
5 #include <linux/wait.h>
6 #include <linux/workqueue.h>
7 #include <linux/xfrm.h>
8
9 struct netns_xfrm {
10         struct list_head        state_all;
11         /*
12          * Hash table to find appropriate SA towards given target (endpoint of
13          * tunnel or destination of transport mode) allowed by selector.
14          *
15          * Main use is finding SA after policy selected tunnel or transport
16          * mode. Also, it can be used by ah/esp icmp error handler to find
17          * offending SA.
18          */
19         struct hlist_head       *state_bydst;
20         struct hlist_head       *state_bysrc;
21         struct hlist_head       *state_byspi;
22         unsigned int            state_hmask;
23         unsigned int            state_num;
24         struct work_struct      state_hash_work;
25         struct hlist_head       state_gc_list;
26         struct work_struct      state_gc_work;
27
28         wait_queue_head_t       km_waitq;
29
30         struct list_head        policy_all;
31         struct hlist_head       *policy_byidx;
32         unsigned int            policy_idx_hmask;
33         struct hlist_head       policy_inexact[XFRM_POLICY_MAX * 2];
34 };
35
36 #endif