summaryrefslogtreecommitdiff
path: root/zebra/debug.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-05-11 11:44:07 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-05-11 11:44:07 -0400
commit64a4bd09f0704eff92fdcbcede20662f46ab0c42 (patch)
tree8ac26b236a0dbd0d69f048945c7837d06eb1fd6c /zebra/debug.c
parent58670822986bb1d8e56181c6a86b55b1971523b7 (diff)
zebra: Fix kernel netlink hex dump of information
1) Fix the kernel send and recv hex dump of what we are sending to the kernel 2) When configuring the debugs under 'conf t' display it too. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/debug.c')
-rw-r--r--zebra/debug.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/zebra/debug.c b/zebra/debug.c
index a42d5aa3ef..cb1ed359a8 100644
--- a/zebra/debug.c
+++ b/zebra/debug.c
@@ -384,6 +384,16 @@ config_write_debug (struct vty *vty)
vty_out (vty, "debug zebra kernel%s", VTY_NEWLINE);
write++;
}
+ if (IS_ZEBRA_DEBUG_KERNEL_MSGDUMP_RECV)
+ {
+ vty_out (vty, "debug zebra kernel msgdump recv%s", VTY_NEWLINE);
+ write++;
+ }
+ if (IS_ZEBRA_DEBUG_KERNEL_MSGDUMP_SEND)
+ {
+ vty_out (vty, "debug zebra kernel msgdump send%s", VTY_NEWLINE);
+ write++;
+ }
/* Check here using flags as the 'macro' does an OR */
if (CHECK_FLAG (zebra_debug_rib, ZEBRA_DEBUG_RIB))
{