]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ipv4: make sure RTO_ONLINK is saved in routing cache
authorJulian Anastasov <ja@ssi.bg>
Fri, 2 Dec 2011 11:39:42 +0000 (11:39 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Dec 2011 16:56:08 +0000 (08:56 -0800)
commit51338aa88d3ef2d05bf8b1f8a3019ebffcea74f1
tree1c08b27fcc2c6ac6499271e14fa4d6b064ada557
parent9fdec5ec64644ce4f4081e045dfbcd7518276edb
ipv4: make sure RTO_ONLINK is saved in routing cache

[ Upstream commit f61759e6b831a55b89e584b198c3da325e2bc379 ]

__mkroute_output fails to work with the original tos
and uses value with stripped RTO_ONLINK bit. Make sure we put
the original TOS bits into rt_key_tos because it used to match
cached route.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/route.c