Revert "ipv4: Fix incorrect source address in Record Route option"

This reverts commit f1363b7ad0.
This commit is contained in:
Ksawlii 2024-11-24 00:23:56 +01:00
parent fa72cb31d6
commit 14ccccb888

View file

@ -1302,7 +1302,7 @@ void ip_rt_get_source(u8 *addr, struct sk_buff *skb, struct rtable *rt)
struct flowi4 fl4 = {
.daddr = iph->daddr,
.saddr = iph->saddr,
.flowi4_tos = iph->tos & IPTOS_RT_MASK,
.flowi4_tos = RT_TOS(iph->tos),
.flowi4_oif = rt->dst.dev->ifindex,
.flowi4_iif = skb->dev->ifindex,
.flowi4_mark = skb->mark,