Skip to content

Commit 6e28099

Browse files
Julian Anastasovdavem330
authored andcommitted
ipv4: mask tos for input route
Restore the lost masking of TOS in input route code to allow ip rules to match it properly. Problem [1] noticed by Shmulik Ladkani <[email protected]> [1] http://marc.info/?t=137331755300040&r=1&w=2 Fixes: 89aef89 ("ipv4: Delete routing cache.") Signed-off-by: Julian Anastasov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8bcfd09 commit 6e28099

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/ipv4/route.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2009,6 +2009,7 @@ int ip_route_input_noref(struct sk_buff *skb, __be32 daddr, __be32 saddr,
20092009
{
20102010
int res;
20112011

2012+
tos &= IPTOS_RT_MASK;
20122013
rcu_read_lock();
20132014

20142015
/* Multicast recognition logic is moved from route cache to here.

0 commit comments

Comments
 (0)