forked from Mirror/frr
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 <lynne@voltanet.io>
This commit is contained in:
parent
5ffdc11eda
commit
cb978d686b
|
@ -1970,6 +1970,9 @@ DEFUN (no_ipv6_ospf6_passive,
|
||||||
UNSET_FLAG(oi->flag, OSPF6_INTERFACE_PASSIVE);
|
UNSET_FLAG(oi->flag, OSPF6_INTERFACE_PASSIVE);
|
||||||
THREAD_OFF(oi->thread_send_hello);
|
THREAD_OFF(oi->thread_send_hello);
|
||||||
THREAD_OFF(oi->thread_sso);
|
THREAD_OFF(oi->thread_sso);
|
||||||
|
|
||||||
|
/* don't send hellos over loopback interface */
|
||||||
|
if (!if_is_loopback(oi->interface))
|
||||||
thread_add_event(master, ospf6_hello_send, oi, 0,
|
thread_add_event(master, ospf6_hello_send, oi, 0,
|
||||||
&oi->thread_send_hello);
|
&oi->thread_send_hello);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue