Skip to content

Commit 142fa16

Browse files
Revert "Not accepting default routes retracted"
This reverts commit e98e76e. Revert "Uninstalling default unreachable routes" This reverts commit 149a20e. Revert "Ignore only Add unreachable routes" This reverts commit 9add398.
1 parent e98e76e commit 142fa16

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

kernel_netlink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ kernel_route(int operation, int table,
10461046

10471047
/* Unreachable default routes cause all sort of weird interactions;
10481048
ignore them. */
1049-
if(operation == ROUTE_ADD && metric >= KERNEL_INFINITY && (plen == 0 || (ipv4 && plen == 96)))
1049+
if(metric >= KERNEL_INFINITY && (plen == 0 || (ipv4 && plen == 96)))
10501050
return 0;
10511051

10521052
memset(&buf, 0, sizeof(buf));

route.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -731,8 +731,6 @@ route_acceptable(struct babel_route *route, int feasible,
731731
return 0;
732732
if(exclude && route->neigh == exclude)
733733
return 0;
734-
if(route->refmetric == INFINITY && is_default(route->src->prefix, route->src->plen))
735-
return 0;
736734
return 1;
737735
}
738736

@@ -931,11 +929,6 @@ update_route(const unsigned char *id,
931929
}
932930
}
933931

934-
if(route->installed && refmetric == INFINITY && is_default(prefix, plen)) {
935-
uninstall_route(route);
936-
lost = 1;
937-
}
938-
939932
route->src = retain_source(src);
940933
if(refmetric < INFINITY)
941934
route->time = now.tv_sec;

0 commit comments

Comments
 (0)