From: Donald Sharp Date: Fri, 18 Mar 2016 16:40:12 +0000 (-0400) Subject: ospf6d: Stop sending hello's out loopback interface X-Git-Tag: frr-2.0-rc1~1051 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=419b65eed2456af7479f7114aa6ae0f2c0f1cf32;p=mirror%2Ffrr.git 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 --- 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 */