Commit b66c1733 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't send Hellos and Updates to new neighbours.

This slows down initial convergence, but avoids a broadcast burst
at boot.  Thanks to Teco Boot for pointing this out.
parent d42c1dbd
......@@ -183,23 +183,6 @@ update_neighbour(struct neighbour *neigh, struct hello_history *hist,
rc = 1;
}
if(unicast)
return rc;
/* Make sure to give neighbours some feedback early after association */
if((hist->reach & 0xBF00) == 0x8000) {
/* A new neighbour */
send_hello(neigh->ifp);
} else {
/* Don't send hellos, in order to avoid a positive feedback loop. */
int a = (hist->reach & 0xC000);
int b = (hist->reach & 0x3000);
if((a == 0xC000 && b == 0) || (a == 0 && b == 0x3000)) {
/* Reachability is either 1100 or 0011 */
send_self_update(neigh->ifp);
}
}
return rc;
}
......
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