]> 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)
commit1586588db5fd51dcb9dd89e3588857eca21f09b7
treef1728dd87ed10e66916277f89caef5a261b5a70f
parent72a58b65b378805800fb7ebda543fbd3b020264f
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