summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorEyal Birger <eyal.birger@gmail.com>2024-09-02 17:07:10 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-11-01 01:56:03 +0100
commit681fa845cc3110e103324bc21b1f80b5b6b297d3 (patch)
tree05be3469d5e22cfcff3aa1e043252110eb68d059 /include/net
parent3094585b5f50e2ba33b6a44dd4e942c4bdb08208 (diff)
downloadlinux-681fa845cc3110e103324bc21b1f80b5b6b297d3.tar.gz
linux-681fa845cc3110e103324bc21b1f80b5b6b297d3.tar.bz2
linux-681fa845cc3110e103324bc21b1f80b5b6b297d3.zip
xfrm: respect ip protocols rules criteria when performing dst lookups
[ Upstream commit b8469721034300bbb6dec5b4bf32492c95e16a0c ] 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: a25724b05af0 ("Merge branch 'fib_rules-support-sport-dport-and-proto-match'") Signed-off-by: Eyal Birger <eyal.birger@gmail.com> Tested-by: Antony Antony <antony.antony@secunet.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/xfrm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index 55ea15ccd532..bf670929622d 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -333,6 +333,8 @@ struct xfrm_dst_lookup_params {
xfrm_address_t *saddr;
xfrm_address_t *daddr;
u32 mark;
+ __u8 ipproto;
+ union flowi_uli uli;
};
struct net_device;