]> git.baikalelectronics.ru Git - kernel.git/commit
route: check and remove route cache when we get route
authorXin Long <lucien.xin@gmail.com>
Thu, 18 Feb 2016 13:21:19 +0000 (21:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Feb 2016 16:31:36 +0000 (11:31 -0500)
commitbce5eab1ed6030f43b7519cb8baf9c6fc43b3245
treeea42dfb5f3b2e69b5e783c12b62dcc3eb4b53b1c
parenta1289589a8c48554064f30a4434fa618f9d6de4f
route: check and remove route cache when we get route

Since the gc of ipv4 route was removed, the route cached would has
no chance to be removed, and even it has been timeout, it still could
be used, cause no code to check it's expires.

Fix this issue by checking  and removing route cache when we get route.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_fib.h
net/ipv4/route.c