]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: Add xfrm_tunnel_skb_cb to the skb common buffer
authorSteffen Klassert <steffen.klassert@secunet.com>
Fri, 21 Feb 2014 07:41:09 +0000 (08:41 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 25 Feb 2014 06:04:17 +0000 (07:04 +0100)
commit2584e601bdc174987fd26e5a2ff663c97dfed95c
treef1728dd87ed10e66916277f89caef5a261b5a70f
parent9994199a4be7cd5503932eb2eabaffb7d365ef1c
xfrm: Add xfrm_tunnel_skb_cb to the skb common buffer

IPsec vti_rcv needs to remind the tunnel pointer to
check it later at the vti_rcv_cb callback. So add
this pointer to the IPsec common buffer, initialize
it and check it to avoid transport state matching of
a tunneled packet.

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