From: Vystoropskyi, Sergii Date: Sun, 16 Aug 2015 13:25:36 +0000 (+0000) Subject: ospfd: Fix for 'no' + 'debug command' does not disable 'debug command' X-Git-Tag: frr-2.0-rc1~550^2~9 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=bb882a8651841d36cd923174408fb12493475005;p=mirror%2Ffrr.git 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) --- 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. */