[XFRM] MIP6: Fix address keys for routing search.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Fri, 22 Feb 2008 05:48:22 +0000 (14:48 +0900)
committerYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Tue, 25 Mar 2008 01:23:57 +0000 (10:23 +0900)
commit9bb182a7007515239091b237fe7169b1328a61d3
tree7be7f556c58c650a547a0db34058f8ffffbf98aa
parentdf8ea19b5d2e7512095bb1e0737513b8da196d64
[XFRM] MIP6: Fix address keys for routing search.

Each MIPv6 XFRM state (DSTOPT/RH2) holds either destination or source
address to be mangled in the IPv6 header (that is "CoA").
On Inter-MN communication after both nodes binds each other,
they use route optimized traffic two MIPv6 states applied, and
both source and destination address in the IPv6 header
are replaced by the states respectively.
The packet format is correct, however, next-hop routing search
are not.
This patch fixes it by remembering address pairs for later states.

Based on patch from Masahide NAKAMURA <nakam@linux-ipv6.org>.

Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org>
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
include/net/xfrm.h
net/xfrm/xfrm_policy.c