ospf6d: fix unguarded GR debug message

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>
This commit is contained in:
Renato Westphal 2021-08-31 00:48:38 -03:00
parent 3c65c73ffa
commit 950b49f80c

View file

@ -515,12 +515,12 @@ static void ospf6_hello_recv(struct in6_addr *src, struct in6_addr *dst,
if (twoway) if (twoway)
thread_execute(master, twoway_received, on, 0); thread_execute(master, twoway_received, on, 0);
else { else {
if (IS_DEBUG_OSPF6_GR) if (OSPF6_GR_IS_ACTIVE_HELPER(on)) {
zlog_debug( if (IS_DEBUG_OSPF6_GR)
"%s, Received oneway hello from RESTARTER so ignore here.", zlog_debug(
__PRETTY_FUNCTION__); "%s, Received oneway hello from RESTARTER so ignore here.",
__PRETTY_FUNCTION__);
if (!OSPF6_GR_IS_ACTIVE_HELPER(on)) { } else {
/* If the router is DR_OTHER, RESTARTER will not wait /* If the router is DR_OTHER, RESTARTER will not wait
* until it receives the hello from it if it receives * until it receives the hello from it if it receives
* from DR and BDR. * from DR and BDR.