492b471d2a7f15aa967adb43a66a0a326f2429d9
[pandora-kernel.git] / include / net / netns / xfrm.h
1 #ifndef __NETNS_XFRM_H
2 #define __NETNS_XFRM_H
3
4 #include <linux/list.h>
5
6 struct netns_xfrm {
7         struct list_head        state_all;
8         /*
9          * Hash table to find appropriate SA towards given target (endpoint of
10          * tunnel or destination of transport mode) allowed by selector.
11          *
12          * Main use is finding SA after policy selected tunnel or transport
13          * mode. Also, it can be used by ah/esp icmp error handler to find
14          * offending SA.
15          */
16         struct hlist_head       *state_bydst;
17         struct hlist_head       *state_bysrc;
18         struct hlist_head       *state_byspi;
19         unsigned int            state_hmask;
20         unsigned int            state_num;
21 };
22
23 #endif