From bb882a8651841d36cd923174408fb12493475005 Mon Sep 17 00:00:00 2001 From: "Vystoropskyi, Sergii" Date: Sun, 16 Aug 2015 13:25:36 +0000 Subject: [PATCH] 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 (cherry picked from commit b075e8728f650b0850e20fdf8dde467440a24b28) --- ospfd/ospf_dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ospfd/ospf_dump.c b/ospfd/ospf_dump.c index 56dac83b7c..861f9d3516 100644 --- a/ospfd/ospf_dump.c +++ b/ospfd/ospf_dump.c @@ -955,7 +955,7 @@ no_debug_ospf_packet_common (struct vty *vty, int arg_base, int argc, else if (strncmp (argv[arg_base + 1], "r", 1) == 0) flag = OSPF_DEBUG_RECV | OSPF_DEBUG_DETAIL; else if (strncmp (argv[arg_base + 1], "d", 1) == 0) - flag = OSPF_DEBUG_DETAIL; + flag = OSPF_DEBUG_DETAIL | OSPF_DEBUG_RECV | OSPF_DEBUG_DETAIL; } /* detail. */ -- 2.39.5