From 3d1482a9451039d94dce91f25dac8334354e1f92 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 27 Jul 2021 16:12:04 +0200 Subject: ospf6d: option to disable multicast hellos With the configured neighbor list, unicast hellos can be sent. Allow disabling multicast hellos for that scenario. Signed-off-by: David Lamparter --- ospf6d/ospf6_message.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'ospf6d/ospf6_message.c') diff --git a/ospf6d/ospf6_message.c b/ospf6d/ospf6_message.c index 7a855d1af5..f7b1bf3b04 100644 --- a/ospf6d/ospf6_message.c +++ b/ospf6d/ospf6_message.c @@ -2284,6 +2284,13 @@ void ospf6_hello_send(struct event *thread) return; } + event_add_timer(master, ospf6_hello_send, oi, oi->hello_interval, + &oi->thread_send_hello); + + if (oi->state == OSPF6_INTERFACE_POINTTOPOINT + && oi->p2xp_no_multicast_hello) + return 0; + op = ospf6_packet_new(oi->ifmtu); ospf6_make_header(OSPF6_MESSAGE_TYPE_HELLO, oi, op->s); @@ -2311,10 +2318,6 @@ void ospf6_hello_send(struct event *thread) */ ospf6_packet_add_top(oi, op); - /* set next thread */ - event_add_timer(master, ospf6_hello_send, oi, oi->hello_interval, - &oi->thread_send_hello); - OSPF6_MESSAGE_WRITE_ON(oi); } -- cgit v1.2.3