From: lynne Date: Wed, 10 Feb 2021 00:20:09 +0000 (-0500) Subject: ospf6d: Don't send hellos on loopback interface X-Git-Tag: base_8.0~380^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F8051%2Fhead;p=mirror%2Ffrr.git ospf6d: Don't send hellos on loopback interface When ospf6 passive is turned off on a loopback interface don't start sending ospf6 hellos. Signed-off-by: Lynne Morrison --- diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index 4988cee7d8..13e1b2abdc 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -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; }