Commit 854aa4ee authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Revert "Unconditionally update routes going through a neighbour on IHU."

This reverts commit 4229bea0.
parent 47be3099
......@@ -289,10 +289,11 @@ parse_packet(const unsigned char *from, struct interface *ifp,
format_address(from), ifp->name,
format_address(address));
if(message[2] == 0 || interface_ll_address(ifp, address)) {
int changed = txcost != neigh->txcost;
neigh->txcost = txcost;
neigh->ihu_time = now;
neigh->ihu_interval = interval;
update_neighbour_metric(neigh, 1);
update_neighbour_metric(neigh, changed);
if(interval > 0)
schedule_neighbours_check(interval * 10 * 3, 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