ospfd: Fix for 'no' + 'debug command' does not disable 'debug command'
"no debug ospf packet all detail" does not cancel "debug ospf packet all detail"
due to the code inconsistency in setting/unsetting debug flags.
* ospf_dump.c: added missing flags.
Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
diff --git a/ospfd/ospf_dump.c b/ospfd/ospf_dump.c
index 2e4e69d..ac93f1d 100644
--- a/ospfd/ospf_dump.c
+++ b/ospfd/ospf_dump.c
@@ -902,7 +902,7 @@
else if (strncmp (argv[1], "r", 1) == 0)
flag = OSPF_DEBUG_RECV | OSPF_DEBUG_DETAIL;
else if (strncmp (argv[1], "d", 1) == 0)
- flag = OSPF_DEBUG_DETAIL;
+ flag = OSPF_DEBUG_SEND | OSPF_DEBUG_RECV | OSPF_DEBUG_DETAIL;
}
/* detail. */