Commit c72c4fda authored by Dave Taht's avatar Dave Taht Committed by Juliusz Chroboczek

Log late hellos

A late hello is an early warning sign of a cpu overload or
overbuffering.
parent 49a0d0b3
...@@ -151,6 +151,11 @@ update_neighbour(struct neighbour *neigh, struct hello_history *hist, ...@@ -151,6 +151,11 @@ update_neighbour(struct neighbour *neigh, struct hello_history *hist,
missed_hellos = 0; missed_hellos = 0;
rc = 1; rc = 1;
} else if(missed_hellos < 0) { } else if(missed_hellos < 0) {
/* Late hello. Probably due to the link layer buffering
packets during a link outage or a cpu overload. */
fprintf(stderr,
"Late hello: bufferbloated neighbor %s\n",
format_address(neigh->address));
hist->reach <<= -missed_hellos; hist->reach <<= -missed_hellos;
missed_hellos = 0; missed_hellos = 0;
rc = 1; rc = 1;
......
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