]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospf6d: Don't send hellos on loopback interface 8051/head
authorlynne <lynne@voltanet.io>
Wed, 10 Feb 2021 00:20:09 +0000 (19:20 -0500)
committerlynne <lynne@voltanet.io>
Wed, 10 Feb 2021 00:31:18 +0000 (19:31 -0500)
When ospf6 passive is turned off on a loopback interface don't start
sending ospf6 hellos.

Signed-off-by: Lynne Morrison <lynne@voltanet.io>
ospf6d/ospf6_interface.c

index 4988cee7d860b9b194eecd14aca75ac8524d3961..13e1b2abdc4b1dd38d8902c02acb83f2b96d89d2 100644 (file)
@@ -1970,8 +1970,11 @@ DEFUN (no_ipv6_ospf6_passive,
        UNSET_FLAG(oi->flag, OSPF6_INTERFACE_PASSIVE);
        THREAD_OFF(oi->thread_send_hello);
        THREAD_OFF(oi->thread_sso);
-       thread_add_event(master, ospf6_hello_send, oi, 0,
-                        &oi->thread_send_hello);
+
+       /* don't send hellos over loopback interface */
+       if (!if_is_loopback(oi->interface))
+               thread_add_event(master, ospf6_hello_send, oi, 0,
+                                &oi->thread_send_hello);
 
        return CMD_SUCCESS;
 }