Commit 3d02142c authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't redistribute martian routes.

parent ffd18f72
......@@ -755,6 +755,10 @@ filter_kernel_routes(struct nlmsghdr *nh, void *data)
parse_kernel_route_rta(rtm, len, &routes[*found]);
if(rtm->rtm_dst_len >= 8 &&
(routes[*found].prefix[0] == 0xFF || routes[*found].prefix[0] == 0))
return 0;
*found = (*found)+1;
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment