]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: Allow inserting policies with matching mark and different priorities
authorSteffen Klassert <steffen.klassert@secunet.com>
Mon, 11 Feb 2013 06:02:36 +0000 (07:02 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 11 Feb 2013 13:07:01 +0000 (14:07 +0100)
commit26c9c1a8de189b224b1a5ac0e3cc8e15c306b188
tree2d2ab4468555120fb04b86097fce9e31b584154f
parent2d0a7d4455465c534f12f168b91dcfc3b35716df
xfrm: Allow inserting policies with matching mark and different priorities

We currently can not insert policies with mark and mask
such that some flows would be matched from both policies.
We make this possible when the priority of these policies
are different. If both policies match a flow, the one with
the higher priority is used.

Reported-by: Emmanuel Thierry <emmanuel.thierry@telecom-bretagne.eu>
Reported-by: Romain Kuntz <r.kuntz@ipflavors.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c