summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_dump.c
diff options
context:
space:
mode:
authorVystoropskyi, Sergii <vistorop@amazon.com>2015-08-16 15:25:36 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-06-09 16:22:24 +0200
commitbb882a8651841d36cd923174408fb12493475005 (patch)
tree48d8dd505ab5fe9a7d9a1ec52c2a6ce6e2af2cc8 /ospfd/ospf_dump.c
parentospfd: Fast OSPF convergence (diff)
downloadfrr-bb882a8651841d36cd923174408fb12493475005.tar.xz
frr-bb882a8651841d36cd923174408fb12493475005.zip
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> (cherry picked from commit b075e8728f650b0850e20fdf8dde467440a24b28)
Diffstat (limited to 'ospfd/ospf_dump.c')
-rw-r--r--ospfd/ospf_dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_dump.c b/ospfd/ospf_dump.c
index 56dac83b7..861f9d351 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. */