xfrm: fix xfrm by MARK logic
authorPeter Kosyh <p.kosyh@gmail.com>
Fri, 2 Jul 2010 07:47:55 +0000 (07:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Jul 2010 18:46:07 +0000 (11:46 -0700)
commit44b451f1633896de15d2d52e1a2bd462e80b7814
tree14596f22d672a9b34e017422f772c2a0b967f2f1
parent8bd39456bd5ab16d2a956dd3d567dcac9c73a6c0
xfrm: fix xfrm by MARK logic

While using xfrm by MARK feature in
2.6.34 - 2.6.35 kernels, the mark
is always cleared in flowi structure via memset in
_decode_session4 (net/ipv4/xfrm4_policy.c), so
the policy lookup fails.
IPv6 code is affected by this bug too.

Signed-off-by: Peter Kosyh <p.kosyh@gmail.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/xfrm4_policy.c
net/ipv6/xfrm6_policy.c