]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: Fix for 'no' + 'debug command' does not disable 'debug command'
authorVystoropskyi, Sergii <vistorop@amazon.com>
Sun, 16 Aug 2015 13:25:36 +0000 (13:25 +0000)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 9 Jun 2016 14:22:24 +0000 (10:22 -0400)
"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)

ospfd/ospf_dump.c

index 56dac83b7c434d9768d7dd920633d111d94209e9..861f9d35169374b88c73942bd1e66eb9465e188c 100644 (file)
@@ -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. */