diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2021-08-31 00:48:38 -0300 | 
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2021-08-31 01:45:50 -0300 | 
| commit | 950b49f80c758f13b660729fb875969666eb506c (patch) | |
| tree | 9f5385fa81028e664d4c3518453c3d1b105080ef /ospf6d/ospf6_message.c | |
| parent | 3c65c73ffa81dd11ba7c9f3cb3dceddd3acc4d03 (diff) | |
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>
Diffstat (limited to 'ospf6d/ospf6_message.c')
| -rw-r--r-- | ospf6d/ospf6_message.c | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/ospf6d/ospf6_message.c b/ospf6d/ospf6_message.c index cd73e3d406..3dcc74589a 100644 --- a/ospf6d/ospf6_message.c +++ b/ospf6d/ospf6_message.c @@ -515,12 +515,12 @@ static void ospf6_hello_recv(struct in6_addr *src, struct in6_addr *dst,  	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.  | 
