]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv4: mask tos for input route
authorJulian Anastasov <ja@ssi.bg>
Sun, 26 Feb 2017 15:14:35 +0000 (17:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2017 11:56:56 +0000 (12:56 +0100)
commit91f4f5bfaa297434073639a42ed70e4416b11be8
tree215fe79aac4576648a910f547c3625274b851719
parent0a33d62a6f9d327327771e4415161d3f9ee1f3e3
ipv4: mask tos for input route

[ Upstream commit 6e28099d38c0e50d62c1afc054e37e573adf3d21 ]

Restore the lost masking of TOS in input route code to
allow ip rules to match it properly.

Problem [1] noticed by Shmulik Ladkani <shmulik.ladkani@gmail.com>

[1] http://marc.info/?t=137331755300040&r=1&w=2

Fixes: 89aef8921bfb ("ipv4: Delete routing cache.")
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/route.c