]> bbs.cooldavid.org Git - net-next-2.6.git/commit - net/ipv4/route.c
net: blackhole route should always be recalculated
authorJianzhao Wang <jianzhao.wang@6wind.com>
Wed, 8 Sep 2010 21:35:43 +0000 (14:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Sep 2010 21:35:43 +0000 (14:35 -0700)
commitae2688d59b5f861dc70a091d003773975d2ae7fb
treeae674d926ba2069bc712cc1bb25b1c87ea7cc241
parentf6b085b69d1cbbd62f49f34e71a3d58cb6d34b7e
net: blackhole route should always be recalculated

Blackhole routes are used when xfrm_lookup() returns -EREMOTE (error
triggered by IKE for example), hence this kind of route is always
temporary and so we should check if a better route exists for next
packets.
Bug has been introduced by commit d11a4dc18bf41719c9f0d7ed494d295dd2973b92.

Signed-off-by: Jianzhao Wang <jianzhao.wang@6wind.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c