Skip to content

Commit 9add398

Browse files
Ignore only Add unreachable routes
1 parent c710349 commit 9add398

1 file changed

Lines changed: 1 addition & 1 deletion

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(metric >= KERNEL_INFINITY && (plen == 0 || (ipv4 && plen == 96)))
1049+
if(operation == ROUTE_ADD && metric >= KERNEL_INFINITY && (plen == 0 || (ipv4 && plen == 96)))
10501050
return 0;
10511051

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

0 commit comments

Comments
 (0)