]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: blackhole route should always be recalculated
authorJianzhao Wang <jianzhao.wang@6wind.com>
Wed, 8 Sep 2010 21:35:43 +0000 (14:35 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:43:19 +0000 (12:43 -0700)
commit217e4b61e6b5e14f950b5353ba261d9cd8142186
tree01aa6dc6209fa63a37a3a5dd24bdeba6709d775f
parent107ed4220f8884e3ac026636dfc19c45b8fc990a
net: blackhole route should always be recalculated

[ Upstream commit ae2688d59b5f861dc70a091d003773975d2ae7fb ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/route.c