mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[IPSEC]: Add xfrm_input_state helper
This patch adds the xfrm_input_state helper function which returns the current xfrm state being processed on the input path given an sk_buff. This is currently only used by xfrm_input but will be used by ESP upon asynchronous resumption. Signed-off-by: Herbert Xu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
385ac2e3f2
commit
005011211f
2 changed files with 6 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type)
|
|||
/* A negative encap_type indicates async resumption. */
|
||||
if (encap_type < 0) {
|
||||
async = 1;
|
||||
x = skb->sp->xvec[skb->sp->len - 1];
|
||||
x = xfrm_input_state(skb);
|
||||
seq = XFRM_SKB_CB(skb)->seq;
|
||||
goto resume;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue