]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[XFRM]: Use output device disable_xfrm for forwarded packets
authorPatrick McHardy <kaber@trash.net>
Sat, 9 Dec 2006 15:14:39 +0000 (16:14 +0100)
committerAdrian Bunk <bunk@stusta.de>
Sat, 9 Dec 2006 15:14:39 +0000 (16:14 +0100)
commit6a24340c98293f34d0b86310239066f4ed2af9fa
tree6847a6fe3f6301b311f12164178f5713aaa92281
parentdcb1715778026c4aec20d186dc794245d9a1f5de
[XFRM]: Use output device disable_xfrm for forwarded packets

Currently the behaviour of disable_xfrm is inconsistent between
locally generated and forwarded packets. For locally generated
packets disable_xfrm disables the policy lookup if it is set on
the output device, for forwarded traffic however it looks at the
input device. This makes it impossible to disable xfrm on all
devices but a dummy device and use normal routing to direct
traffic to that device.

Always use the output device when checking disable_xfrm.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
net/ipv4/route.c