From: Thomas Graf Date: Thu, 7 Jun 2012 06:51:04 +0000 (+0000) Subject: ipv6: fib: Restore NTF_ROUTER exception in fib6_age() X-Git-Tag: v3.4.5~159 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8ec2c824f3773dcc31316535acd8c725c22a7341;p=karo-tx-linux.git ipv6: fib: Restore NTF_ROUTER exception in fib6_age() [ Upstream commit 8bd74516b1bd9308c17f67583134d93f777203ca ] Commit 5339ab8b1dd82 (ipv6: fib: Convert fib6_age() to dst_neigh_lookup().) seems to have mistakenly inverted the exception for cached NTF_ROUTER routes. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c index 93717435013e..92bb9cba5c39 100644 --- a/net/ipv6/ip6_fib.c +++ b/net/ipv6/ip6_fib.c @@ -1560,7 +1560,7 @@ static int fib6_age(struct rt6_info *rt, void *arg) neigh_flags = neigh->flags; neigh_release(neigh); } - if (neigh_flags & NTF_ROUTER) { + if (!(neigh_flags & NTF_ROUTER)) { RT6_TRACE("purging route %p via non-router but gateway\n", rt); return -1;