From 913ff58be98a97cb14005a9d9685da2ff4b82ede Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 18 Oct 2024 08:33:46 -0400 Subject: [PATCH] MT#55283 compile fix for CentOS 9 Hopefully this doesn't break other RHEL builds Change-Id: I50e32bdafd2fef8a4791e745ccb90d80ff091fe1 (cherry picked from commit e8af2017782be9b51605993bdf9ce2af4cfd64f1) (cherry picked from commit d9d9b56c0a4ff230e9fba32c5a430045547f14fb) --- kernel-module/xt_RTPENGINE.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel-module/xt_RTPENGINE.c b/kernel-module/xt_RTPENGINE.c index 6898613ef..9961a00c2 100644 --- a/kernel-module/xt_RTPENGINE.c +++ b/kernel-module/xt_RTPENGINE.c @@ -4988,7 +4988,9 @@ static int send_proxy_packet4(struct sk_buff *skb, struct re_address *src, struc skb->protocol = htons(ETH_P_IP); -#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,10,0) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6,10,0)) || \ + (defined(RHEL_RELEASE_CODE) && LINUX_VERSION_CODE >= KERNEL_VERSION(5,14,0) && \ + RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9,6)) rt = ip_route_output(net, dst->u.ipv4, src->u.ipv4, tos, 0, 0); #else rt = ip_route_output(net, dst->u.ipv4, src->u.ipv4, tos, 0);