ospf6d: fix invalid "no debug ospf6 message unknown"

The message is always shown in the config, because IS_OSPF6_DEBUG_MESSAGE
works incorrectly when negated because of missing outer brackets.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
Igor Ryzhov 2021-05-26 11:45:07 +03:00
parent 7b4e9d3cfc
commit 63d00b52e7

View File

@ -42,14 +42,14 @@ extern unsigned char conf_debug_ospf6_message[];
(conf_debug_ospf6_message[type] &= ~(level))
#define IS_OSPF6_DEBUG_MESSAGE(t, e) \
((OSPF6_DEBUG_MESSAGE_##e) == OSPF6_DEBUG_MESSAGE_RECV_HDR) \
(((OSPF6_DEBUG_MESSAGE_##e) == OSPF6_DEBUG_MESSAGE_RECV_HDR) \
? (conf_debug_ospf6_message[t] \
& (OSPF6_DEBUG_MESSAGE_RECV_BOTH)) \
: (((OSPF6_DEBUG_MESSAGE_##e) == OSPF6_DEBUG_MESSAGE_SEND_HDR) \
? (conf_debug_ospf6_message[t] \
& (OSPF6_DEBUG_MESSAGE_SEND_BOTH)) \
: (conf_debug_ospf6_message[t] \
& (OSPF6_DEBUG_MESSAGE_##e)))
& (OSPF6_DEBUG_MESSAGE_##e))))
#define IS_OSPF6_DEBUG_MESSAGE_ENABLED(type, e) \
(conf_debug_ospf6_message[type] & (OSPF6_DEBUG_MESSAGE_##e))