diff options
author | Fan Du <fan.du@windriver.com> | 2014-01-03 03:18:32 (GMT) |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2014-01-03 06:29:12 (GMT) |
commit | c454997e68eb013510ba128283ad3b4aefeff630 (patch) | |
tree | c32cd7284c1e831c84aa962bced9fb0d816b5c51 /include | |
parent | cf93d47ed4489cc349678f397290b3ecba868a3b (diff) | |
download | linux-c454997e68eb013510ba128283ad3b4aefeff630.tar.xz |
{pktgen, xfrm} Introduce xfrm_state_lookup_byspi for pktgen
Introduce xfrm_state_lookup_byspi to find user specified by custom
from "pgset spi xxx". Using this scheme, any flow regardless its
saddr/daddr could be transform by SA specified with configurable
spi.
Signed-off-by: Fan Du <fan.du@windriver.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/xfrm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index b7635ef..cd7c46f 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h @@ -1421,6 +1421,8 @@ struct xfrm_state *xfrm_stateonly_find(struct net *net, u32 mark, xfrm_address_t *saddr, unsigned short family, u8 mode, u8 proto, u32 reqid); +struct xfrm_state *xfrm_state_lookup_byspi(struct net *net, __be32 spi, + unsigned short family); int xfrm_state_check_expire(struct xfrm_state *x); void xfrm_state_insert(struct xfrm_state *x); int xfrm_state_add(struct xfrm_state *x); |