mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 04:40:21 +00:00
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:
parent
7b4e9d3cfc
commit
63d00b52e7
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user