]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[XFRM]: Use output device disable_xfrm for forwarded packets
authorPatrick McHardy <kaber@trash.net>
Tue, 5 Dec 2006 03:59:00 +0000 (19:59 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 7 Dec 2006 02:38:43 +0000 (18:38 -0800)
commit1b6651f1bf2453d593478aa88af267f057fd73e2
treea5454f81737d7fb162c10b314c3458f1919e509a
parent170b828a31bbeaee3a80a05acefe3596e38f09e0
[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>
net/ipv4/route.c