[XFRM] IPV6: Fix outbound RO transformation which is broken by IPsec tunnel patch.
authorMasahide NAKAMURA <nakam@linux-ipv6.org>
Sat, 10 Feb 2007 05:22:16 +0000 (21:22 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 11 Feb 2007 07:20:47 +0000 (23:20 -0800)
commitbda390d5c883d5dff1f3ae2bade4c25869769894
treefeb2196ff29a5d78098047c546b2c0162b5cb659
parent1e19e02ca0c5e33ea73a25127dbe6c3b8fcaac4b
[XFRM] IPV6: Fix outbound RO transformation which is broken by IPsec tunnel patch.

It seems to miss RO mode path by IPv6 over IPv4 IPsec tunnel patch
when it changed semantics to check the mode from
"xfrm[i]->props.mode != XFRM_MODE_TRANSPORT" to
"xfrm[i]->props.mode == XFRM_MODE_TUNNEL" before changing address.
It also makes two incline functions __xfrm6_bundle_addr_{remote,local}
are used by nobody.

This patch fixes it.

Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/xfrm6_policy.c