[PATCH 2/7] Babel: Immediately send a hello on interface reconfigure.

Toke Høiland-Jørgensen toke at toke.dk
Mon May 2 19:07:50 CEST 2016


An interface reconfiguration may change the hello interval. Section
3.4.1 of the RFC specifies that either the change shouldn't be applied
until the next hello is due, or an additional hello should be sent
immediately. This does the latter.

Signed-off-by: Toke Høiland-Jørgensen <toke at toke.dk>
---
 proto/babel/babel.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/proto/babel/babel.c b/proto/babel/babel.c
index 8e104d6..4b28f69 100644
--- a/proto/babel/babel.c
+++ b/proto/babel/babel.c
@@ -1539,7 +1539,10 @@ babel_reconfigure_iface(struct babel_proto *p, struct babel_iface *ifa, struct b
     babel_iface_update_state(ifa);
 
   if (ifa->up)
+  {
+    babel_send_hello(ifa, 0);
     babel_iface_kick_timer(ifa);
+  }
 
   return 1;
 }
-- 
2.8.0



More information about the Bird-users mailing list