Skip to content

Commit 149a20e

Browse files
Uninstalling default unreachable routes
1 parent 9add398 commit 149a20e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

route.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,11 @@ update_route(const unsigned char *id,
929929
}
930930
}
931931

932+
if(route->installed && refmetric == INFINITY && is_default(prefix, plen)) {
933+
uninstall_route(route);
934+
lost = 1;
935+
}
936+
932937
route->src = retain_source(src);
933938
if(refmetric < INFINITY)
934939
route->time = now.tv_sec;

0 commit comments

Comments
 (0)