summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_interface.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2021-02-16 11:42:01 -0500
committerGitHub <noreply@github.com>2021-02-16 11:42:01 -0500
commit67821bf2ad2fef92fe9c1f626ffcadcb968687df (patch)
tree0a82b947922c0fc3e8346609566346d201f4e1eb /ospf6d/ospf6_interface.c
parentdba34d41a10df41e966a8de550ee609d08a6f098 (diff)
parentcb978d686b580d6fbbb10d5d94e392d11de80eb0 (diff)
Merge pull request #8051 from volta-networks/fix_ospf6_hello_lo
ospf6d: Don't send hellos on loopback interface
Diffstat (limited to 'ospf6d/ospf6_interface.c')
-rw-r--r--ospf6d/ospf6_interface.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c
index 0cc3bd2cc9..621cc36a0c 100644
--- a/ospf6d/ospf6_interface.c
+++ b/ospf6d/ospf6_interface.c
@@ -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;
}