Merge pull request #8051 from volta-networks/fix_ospf6_hello_lo

ospf6d: Don't send hellos on loopback interface
This commit is contained in:
Russ White 2021-02-16 11:42:01 -05:00 committed by GitHub
commit 67821bf2ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1976,8 +1976,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;
}