Skip to content

Commit

Permalink
MT#55283 compile fix for CentOS 9
Browse files Browse the repository at this point in the history
Hopefully this doesn't break other RHEL builds

Change-Id: I50e32bdafd2fef8a4791e745ccb90d80ff091fe1
(cherry picked from commit e8af201)
  • Loading branch information
rfuchs committed Oct 24, 2024
1 parent 50f20a6 commit d9d9b56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kernel-module/xt_RTPENGINE.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d9d9b56

Please sign in to comment.