]> git.baikalelectronics.ru Git - kernel.git/commit
[XFRM]: Restrict upper layer information by bundle.
authorMasahide NAKAMURA <nakam@linux-ipv6.org>
Mon, 30 Apr 2007 07:33:35 +0000 (00:33 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 30 Apr 2007 07:58:09 +0000 (00:58 -0700)
commitb60d83672a8be0f88cefecf33e09814bf6c4e1e0
tree422821e5233daf0d8347ac361f09be9f49b43de4
parent815d63d164d46eb66ebb3d76642dcdc2d0a31d0e
[XFRM]: Restrict upper layer information by bundle.

On MIPv6 usage, XFRM sub policy is enabled.
When main (IPsec) and sub (MIPv6) policy selectors have the same
address set but different upper layer information (i.e. protocol
number and its ports or type/code), multiple bundle should be created.
However, currently we have issue to use the same bundle created for
the first time with all flows covered by the case.

It is useful for the bundle to have the upper layer information
to be restructured correctly if it does not match with the flow.

1. Bundle was created by two policies
Selector from another policy is added to xfrm_dst.
If the flow does not match the selector, it goes to slow path to
restructure new bundle by single policy.

2. Bundle was created by one policy
Flow cache is added to xfrm_dst as originated one. If the flow does
not match the cache, it goes to slow path to try searching another
policy.

Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow.h
include/net/xfrm.h
net/xfrm/xfrm_policy.c