Commit 2c17b8a3 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't send spurious updates when tweaking xroutes.

parent fa27514f
...@@ -180,10 +180,11 @@ check_xroutes(int send_updates) ...@@ -180,10 +180,11 @@ check_xroutes(int send_updates)
rc = add_xroute(XROUTE_REDISTRIBUTED, rc = add_xroute(XROUTE_REDISTRIBUTED,
routes[i].prefix, routes[i].plen, routes[i].prefix, routes[i].plen,
metric, routes[i].ifindex, routes[i].proto); metric, routes[i].ifindex, routes[i].proto);
if(rc) if(rc) {
change = 1; change = 1;
if(send_updates) if(send_updates)
send_update(NULL, 1, routes[i].prefix, routes[i].plen); send_update(NULL, 0, routes[i].prefix, routes[i].plen);
}
} }
} }
return change; return change;
......
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