summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLou Berger <lberger@labn.net>2016-01-12 13:41:43 -0500
committerPaul Jakma <paul.jakma@hpe.com>2016-02-26 14:11:40 +0000
commitd7be042378eac103634ab62abf4b2a5ca225092d (patch)
tree63901594ccd70f4fa15d9f9b90a578e8573f931b
parent0490729cc033a3483fc6b0ed45085ee249cac779 (diff)
downloadquagga-d7be042378eac103634ab62abf4b2a5ca225092d.tar.bz2
quagga-d7be042378eac103634ab62abf4b2a5ca225092d.tar.xz
zebra: wire up "debug zebra packet detail"
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 <lberger@labn.net> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
-rw-r--r--zebra/debug.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/debug.c b/zebra/debug.c
index c3b00e0f..537c4766 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;
}