netns xfrm: per-netns xfrm_state_hmask
[firewire-audio.git] / include / net / netns / xfrm.h
blobdbbc0e972273725b26d00b0be9222eb9e1b48bb7
1 #ifndef __NETNS_XFRM_H
2 #define __NETNS_XFRM_H
4 #include <linux/list.h>
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.
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.
16 struct hlist_head *state_bydst;
17 struct hlist_head *state_bysrc;
18 struct hlist_head *state_byspi;
19 unsigned int state_hmask;
22 #endif