Commit 25385b66 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Check for martians when getting routes from kernel.

parent ad24a799
......@@ -137,6 +137,8 @@ check_xroutes()
}
for(i = 0; i < n; i++) {
if(martian_prefix(routes[i].prefix, routes[i].plen))
continue;
metric = redistribute_filter(routes[i].prefix, routes[i].plen,
routes[i].ifindex, routes[i].proto);
if(metric == METRIC_INHERIT)
......
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