diff options
author | Lou Berger <lberger@labn.net> | 2016-01-12 19:41:43 +0100 |
---|---|---|
committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-05-26 17:33:33 +0200 |
commit | 54f03be9705acdb6c24449787bd77ad7c9a01234 (patch) | |
tree | 8365499308145cb342940342befc3a967d8086ae /zebra/debug.c | |
parent | docs: Update bgpd docs, inc. on decision process, and with a section on MED. (diff) | |
download | frr-54f03be9705acdb6c24449787bd77ad7c9a01234.tar.xz frr-54f03be9705acdb6c24449787bd77ad7c9a01234.zip |
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>
(cherry picked from commit d7be042378eac103634ab62abf4b2a5ca225092d)
Diffstat (limited to 'zebra/debug.c')
-rw-r--r-- | zebra/debug.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/debug.c b/zebra/debug.c index 906d13d7e..d24d7ab64 100644 --- a/zebra/debug.c +++ b/zebra/debug.c @@ -119,7 +119,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" @@ -131,7 +131,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; } |