blob: dbbc0e972273725b26d00b0be9222eb9e1b48bb7 [file] [log] [blame]
Alexey Dobriyand62ddc22008-11-25 17:14:31 -08001#ifndef __NETNS_XFRM_H
2#define __NETNS_XFRM_H
3
Alexey Dobriyan9d4139c2008-11-25 17:16:11 -08004#include <linux/list.h>
5
Alexey Dobriyand62ddc22008-11-25 17:14:31 -08006struct netns_xfrm {
Alexey Dobriyan9d4139c2008-11-25 17:16:11 -08007 struct list_head state_all;
Alexey Dobriyan73d189d2008-11-25 17:16:58 -08008 /*
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;
Alexey Dobriyand320bbb2008-11-25 17:17:24 -080017 struct hlist_head *state_bysrc;
Alexey Dobriyanb754a4f2008-11-25 17:17:47 -080018 struct hlist_head *state_byspi;
Alexey Dobriyan529983e2008-11-25 17:18:12 -080019 unsigned int state_hmask;
Alexey Dobriyand62ddc22008-11-25 17:14:31 -080020};
21
22#endif