mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
ipsec: Add IV generator information to xfrm_state
This patch adds IV generator information to xfrm_state. This is currently obtained from our own list of algorithm descriptions. Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
165ecc6373
commit
69b0137f61
3 changed files with 33 additions and 9 deletions
|
|
@ -1190,6 +1190,7 @@ static struct xfrm_state * pfkey_msg2xfrm_state(struct net *net,
|
|||
memcpy(x->ealg->alg_key, key+1, keysize);
|
||||
}
|
||||
x->props.ealgo = sa->sadb_sa_encrypt;
|
||||
x->geniv = a->uinfo.encr.geniv;
|
||||
}
|
||||
}
|
||||
/* x->algo.flags = sa->sadb_sa_flags; */
|
||||
|
|
|
|||
Loading…
Reference in a new issue