The message about ignoring a one-way hello should only be logged
when the router is acting a helper for another one.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
if (twoway)
thread_execute(master, twoway_received, on, 0);
else {
- if (IS_DEBUG_OSPF6_GR)
- zlog_debug(
- "%s, Received oneway hello from RESTARTER so ignore here.",
- __PRETTY_FUNCTION__);
-
- if (!OSPF6_GR_IS_ACTIVE_HELPER(on)) {
+ if (OSPF6_GR_IS_ACTIVE_HELPER(on)) {
+ if (IS_DEBUG_OSPF6_GR)
+ zlog_debug(
+ "%s, Received oneway hello from RESTARTER so ignore here.",
+ __PRETTY_FUNCTION__);
+ } else {
/* If the router is DR_OTHER, RESTARTER will not wait
* until it receives the hello from it if it receives
* from DR and BDR.