There was no way to actually set ZEBRA_DEBUG_DETAIL, even though some debug output was conditional to it. Add CLI command.
Signed-off-by: Lou Berger <[email protected]> Signed-off-by: David Lamparter <[email protected]> --- zebra/debug.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zebra/debug.c b/zebra/debug.c index c3b00e0..537c476 100644 --- a/zebra/debug.c +++ b/zebra/debug.c @@ -104,7 +104,7 @@ DEFUN (debug_zebra_packet, DEFUN (debug_zebra_packet_direct, debug_zebra_packet_direct_cmd, - "debug zebra packet (recv|send)", + "debug zebra packet (recv|send|detail)", DEBUG_STR "Zebra configuration\n" "Debug option set for zebra packet\n" @@ -116,7 +116,8 @@ DEFUN (debug_zebra_packet_direct, zebra_debug_packet |= ZEBRA_DEBUG_SEND; if (strncmp ("recv", argv[0], strlen (argv[0])) == 0) zebra_debug_packet |= ZEBRA_DEBUG_RECV; - zebra_debug_packet &= ~ZEBRA_DEBUG_DETAIL; + if (strncmp ("detail", argv[0], strlen (argv[0])) == 0) + zebra_debug_packet |= ZEBRA_DEBUG_DETAIL; return CMD_SUCCESS; } -- 2.1.3 _______________________________________________ Quagga-dev mailing list [email protected] https://lists.quagga.net/mailman/listinfo/quagga-dev
