From 419b65eed2456af7479f7114aa6ae0f2c0f1cf32 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 18 Mar 2016 12:40:12 -0400 Subject: [PATCH] ospf6d: Stop sending hello's out loopback interface Currently if you have this setup: router ospf6 interface lo area 0.0.0.0 Ospf is scheduling and sending hello's out the loopback interface: 2016/03/18 15:26:12.463248 OSPF6: Could not send entire message 2016/03/18 15:26:22.463475 OSPF6: sendmsg failed: ifindex: 1: Network is unreachhable (101) Adding a check to not schedule hello's for a loopback interface resolves this issue. Signed-off-by: Donald Sharp Reviewed-by: Don Slice --- ospf6d/ospf6_interface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index 8afdfefc19..d09f8b3136 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -750,7 +750,8 @@ interface_up (struct thread *thread) ospf6_interface_connected_route_update (oi->interface); /* Schedule Hello */ - if (! CHECK_FLAG (oi->flag, OSPF6_INTERFACE_PASSIVE)) + if (! CHECK_FLAG (oi->flag, OSPF6_INTERFACE_PASSIVE) && + !if_is_loopback (oi->interface)) oi->thread_send_hello = thread_add_event (master, ospf6_hello_send, oi, 0); /* decide next interface state */ -- 2.39.5