summaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipmr.c
diff options
context:
space:
mode:
authorJulian Anastasov <ja@ssi.bg>2011-07-23 04:00:41 +0200
committerDavid S. Miller <davem@davemloft.net>2011-07-24 05:05:31 +0200
commitb0fe4a31849063fcac0bdc93716ca92615e93f57 (patch)
tree440cba41924eb7f32a3f1506715c6fc50663d98a /net/ipv4/ipmr.c
parentvia-velocity: remove duplicated #include (diff)
downloadlinux-b0fe4a31849063fcac0bdc93716ca92615e93f57.tar.xz
linux-b0fe4a31849063fcac0bdc93716ca92615e93f57.zip
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>
Diffstat (limited to 'net/ipv4/ipmr.c')
-rw-r--r--net/ipv4/ipmr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c
index aae2bd8cd924..58e879157976 100644
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -1796,7 +1796,7 @@ static struct mr_table *ipmr_rt_fib_lookup(struct net *net, struct sk_buff *skb)
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,