[Babel-users] [PATCH] Log late hellos

Dave Taht dave at taht.net
Sun Oct 28 16:22:22 GMT 2018


When low on cpu an early sign of trouble is starting to see late hellos.
---
 neighbour.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/neighbour.c b/neighbour.c
index 6bba726..d562ff0 100644
--- a/neighbour.c
+++ b/neighbour.c
@@ -135,6 +135,11 @@ update_neighbour(struct neighbour *neigh, struct hello_history *hist,
                 missed_hellos = 0;
                 rc = 1;
             } 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;
                 missed_hellos = 0;
                 rc = 1;
-- 
2.17.1




More information about the Babel-users mailing list