]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospf6d: Don't send hellos on loopback interface
authorlynne <lynne@voltanet.io>
Wed, 10 Feb 2021 00:20:09 +0000 (19:20 -0500)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 16 Feb 2021 18:13:57 +0000 (21:13 +0300)
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 2191ff46db8452313bf0a314e7778bcc6803a304..ab6a0f9639a8a6c7cfd41dbb15206ecbac6d25a4 100644 (file)
@@ -1681,8 +1681,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;
 }