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)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Dec 2011 06:32:23 +0000 (01:32 -0500)
commitf61759e6b831a55b89e584b198c3da325e2bc379
tree5fe945faa11f90ea10ec54bf4cbf76044945de13
parent5983fe2b29df5885880d7fa3b91aca306c7564ef
ipv4: make sure RTO_ONLINK is saved in routing cache

__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>
net/ipv4/route.c