ipv6: fib: Restore NTF_ROUTER exception in fib6_age()
authorThomas Graf <tgraf@suug.ch>
Thu, 7 Jun 2012 06:51:04 +0000 (06:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Jun 2012 20:02:21 +0000 (13:02 -0700)
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 <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_fib.c

index 0c220a416626af196f534ab062920c169f6dcd7a..74c21b924a7900d7d3e68791750011e689b185e8 100644 (file)
@@ -1561,7 +1561,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;