Commit aec9bd98 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Apply martian filter to local addresses.

parent b34ba8b2
...@@ -184,6 +184,8 @@ check_xroutes() ...@@ -184,6 +184,8 @@ check_xroutes()
/* Add any new routes */ /* Add any new routes */
for(i = 0; i < numaddr; i++) { for(i = 0; i < numaddr; i++) {
if(martian_prefix(addresses[i].prefix, addresses[i].plen))
continue;
metric = redistribute_filter(addresses[i].prefix, addresses[i].plen, metric = redistribute_filter(addresses[i].prefix, addresses[i].plen,
addresses[i].ifindex, PROTO_LOCAL); addresses[i].ifindex, PROTO_LOCAL);
if(metric == METRIC_INHERIT) 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