Skip to content
Commit b2942004 authored by Saurabh Mohan's avatar Saurabh Mohan Committed by David S. Miller
Browse files

ipv4/ip_vti.c: VTI fix post-decryption forwarding



With the latest kernel there are two things that must be done post decryption
 so that the packet are forwarded.
 1. Remove the mark from the packet. This will cause the packet to not match
 the ipsec-policy again. However doing this causes the post-decryption check to
 fail also and the packet will get dropped. (cat /proc/net/xfrm_stat).
 2. Remove the sp association in the skbuff so that no policy check is done on
 the packet for VTI tunnels.

Due to #2 above we must now do a security-policy check in the vti rcv path
prior to resetting the mark in the skbuff.

Signed-off-by: default avatarSaurabh Mohan <saurabh.mohan@vyatta.com>
Reported-by: default avatarRuben Herold <ruben@puettmann.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1ba56fb4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment