]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3303a98fdeacafc4ca7f760b987ed2409b653779
tree120858d4c5c3f9ab0cff9cbea237f3a80109c28c
parent630d0d57a2269ce5765d08422346e6ef614a7a96
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