]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospf6d: Stop sending hello's out loopback interface
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 18 Mar 2016 16:40:12 +0000 (12:40 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 18 Mar 2016 16:40:12 +0000 (12:40 -0400)
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 <sharpd@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
ospf6d/ospf6_interface.c

index 8afdfefc19a919089aa60392856611ace0c5c20f..d09f8b313689b7106c1a029367f79062e7209d3b 100644 (file)
@@ -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 */