netns xfrm: per-netns xfrm_state_bysrc hash
[linux-2.6-block.git] / include / net / netns / xfrm.h
CommitLineData
d62ddc21
AD
1#ifndef __NETNS_XFRM_H
2#define __NETNS_XFRM_H
3
9d4139c7
AD
4#include <linux/list.h>
5
d62ddc21 6struct netns_xfrm {
9d4139c7 7 struct list_head state_all;
73d189dc
AD
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;
d320bbb3 17 struct hlist_head *state_bysrc;
d62ddc21
AD
18};
19
20#endif