* [PATCH] ipv4: use RT_TOS after some rt_tos conversions
@ 2011-07-23 12:00 Julian Anastasov
2011-07-24 3:05 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Julian Anastasov @ 2011-07-23 12:00 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev
rt_tos was changed to iph->tos but it must be filtered by RT_TOS
Signed-off-by: Julian Anastasov <ja@ssi.bg>
---
diff -urp v3.0/linux/net/ipv4/ipmr.c linux/net/ipv4/ipmr.c
--- v3.0/linux/net/ipv4/ipmr.c 2011-07-23 14:35:17.551351207 +0300
+++ linux/net/ipv4/ipmr.c 2011-07-23 14:36:05.293350956 +0300
@@ -1796,7 +1796,7 @@ static struct mr_table *ipmr_rt_fib_look
struct flowi4 fl4 = {
.daddr = iph->daddr,
.saddr = iph->saddr,
- .flowi4_tos = iph->tos,
+ .flowi4_tos = RT_TOS(iph->tos),
.flowi4_oif = rt->rt_oif,
.flowi4_iif = rt->rt_iif,
.flowi4_mark = rt->rt_mark,
diff -urp v3.0/linux/net/ipv4/route.c linux/net/ipv4/route.c
--- v3.0/linux/net/ipv4/route.c 2011-07-23 14:35:17.183352539 +0300
+++ linux/net/ipv4/route.c 2011-07-23 14:36:18.488350045 +0300
@@ -1740,7 +1740,7 @@ void ip_rt_get_source(u8 *addr, struct s
memset(&fl4, 0, sizeof(fl4));
fl4.daddr = iph->daddr;
fl4.saddr = iph->saddr;
- fl4.flowi4_tos = iph->tos;
+ fl4.flowi4_tos = RT_TOS(iph->tos);
fl4.flowi4_oif = rt->dst.dev->ifindex;
fl4.flowi4_iif = skb->dev->ifindex;
fl4.flowi4_mark = skb->mark;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ipv4: use RT_TOS after some rt_tos conversions
2011-07-23 12:00 [PATCH] ipv4: use RT_TOS after some rt_tos conversions Julian Anastasov
@ 2011-07-24 3:05 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2011-07-24 3:05 UTC (permalink / raw)
To: ja; +Cc: netdev
From: Julian Anastasov <ja@ssi.bg>
Date: Sat, 23 Jul 2011 15:00:41 +0300 (EEST)
> rt_tos was changed to iph->tos but it must be filtered by RT_TOS
>
> Signed-off-by: Julian Anastasov <ja@ssi.bg>
Applied, thanks Julian.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-24 3:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-23 12:00 [PATCH] ipv4: use RT_TOS after some rt_tos conversions Julian Anastasov
2011-07-24 3:05 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).