blob: b05ca3f366aa8b3b08d3639056bf12fee7cb6946 [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 Dobriyand62ddc22008-11-25 17:14:31 -080019};
20
21#endif