diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2021-07-27 16:12:04 +0200 |
|---|---|---|
| committer | Adriano Marto Reis <adrianomarto@gmail.com> | 2023-10-10 08:00:08 +1000 |
| commit | 3d1482a9451039d94dce91f25dac8334354e1f92 (patch) | |
| tree | 5a939be6d23b7fa3ad053a8bdfc1d6113c118b7a /ospf6d/ospf6_message.c | |
| parent | f5917bae53cee2367d97ae5712a0e18065981252 (diff) | |
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 <equinox@opensourcerouting.org>
Diffstat (limited to 'ospf6d/ospf6_message.c')
| -rw-r--r-- | ospf6d/ospf6_message.c | 11 |
1 files changed, 7 insertions, 4 deletions
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); } |
