xfrm: Clone states properly on migration
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 19 Feb 2014 12:33:24 +0000 (13:33 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 20 Feb 2014 13:30:10 +0000 (14:30 +0100)
commitee5c23176fcc820f7a56d3e86001532af0d59b1e
tree120858d4c5c3f9ab0cff9cbea237f3a80109c28c
parent8c0cba22e196122d26c92980943474eb53db8deb
xfrm: Clone states properly on migration

We loose a lot of information of the original state if we
clone it with xfrm_state_clone(). In particular, there is
no crypto algorithm attached if the original state uses
an aead algorithm. This patch add the missing information
to the clone state.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
include/net/xfrm.h
net/xfrm/xfrm_state.c
net/xfrm/xfrm_user.c