netifd: Prevent flapping IPv6 routes
authorKristian Evensen <kristian.evensen@gmail.com>
Fri, 18 Sep 2015 11:13:10 +0000 (13:13 +0200)
committerSteven Barth <steven@midlink.org>
Mon, 21 Sep 2015 21:21:34 +0000 (23:21 +0200)
commit014698606902e495c7b169bf30688a685cd72d64
treedf3e42a891e5c81d51e407448e43ab9fc1f98866
parent03834f80dc526cc3ed6c1a78730bb393f202277c
netifd: Prevent flapping IPv6 routes

Comparing valid_until will always return false as the value is updated for each
route update message. This causes IPv6 routes to jump more around than House of
Pain, which might have undesirable consequences for user-space and user-space
applications.

Removing the valid_until comparison when setting keep fixes this problem, and
seems to have no side-effects. I am no IPv6 expert, but I see that valid of the
route is updated correctly and route is deleted if I block the route update
messages.

Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
interface-ip.c