netns xfrm: per-netns xfrm_state_bysrc hash
[safe/jmp/linux-2.6] / 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 };
19
20 #endif