Commit 681fa845 authored by Eyal Birger's avatar Eyal Birger Committed by Greg Kroah-Hartman
Browse files

xfrm: respect ip protocols rules criteria when performing dst lookups



[ Upstream commit b8469721 ]

The series in the "fixes" tag added the ability to consider L4 attributes
in routing rules.

The dst lookup on the outer packet of encapsulated traffic in the xfrm
code was not adapted to this change, thus routing behavior that relies
on L4 information is not respected.

Pass the ip protocol information when performing dst lookups.

Fixes: a25724b0 ("Merge branch 'fib_rules-support-sport-dport-and-proto-match'")
Signed-off-by: default avatarEyal Birger <eyal.birger@gmail.com>
Tested-by: default avatarAntony Antony <antony.antony@secunet.com>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 3094585b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment