Commit b0fe4a31849063fcac0bdc93716ca92615e93f57
Committed by
David S. Miller
1 parent
f6226dec50
Exists in
master
and in
38 other branches
ipv4: use RT_TOS after some rt_tos conversions
rt_tos was changed to iph->tos but it must be filtered by RT_TOS Signed-off-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff
net/ipv4/ipmr.c
... | ... | @@ -1796,7 +1796,7 @@ |
1796 | 1796 | struct flowi4 fl4 = { |
1797 | 1797 | .daddr = iph->daddr, |
1798 | 1798 | .saddr = iph->saddr, |
1799 | - .flowi4_tos = iph->tos, | |
1799 | + .flowi4_tos = RT_TOS(iph->tos), | |
1800 | 1800 | .flowi4_oif = rt->rt_oif, |
1801 | 1801 | .flowi4_iif = rt->rt_iif, |
1802 | 1802 | .flowi4_mark = rt->rt_mark, |
net/ipv4/route.c
... | ... | @@ -1740,7 +1740,7 @@ |
1740 | 1740 | memset(&fl4, 0, sizeof(fl4)); |
1741 | 1741 | fl4.daddr = iph->daddr; |
1742 | 1742 | fl4.saddr = iph->saddr; |
1743 | - fl4.flowi4_tos = iph->tos; | |
1743 | + fl4.flowi4_tos = RT_TOS(iph->tos); | |
1744 | 1744 | fl4.flowi4_oif = rt->dst.dev->ifindex; |
1745 | 1745 | fl4.flowi4_iif = skb->dev->ifindex; |
1746 | 1746 | fl4.flowi4_mark = skb->mark; |
-
mentioned in commit cb737c