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)
commit70be6c91c86596ad2b60c73587880b47df170a41
treef1728dd87ed10e66916277f89caef5a261b5a70f
parentd099160e029391de857464d987b141f30434052b
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