diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-06-21 18:43:40 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-06-21 18:55:01 +0000 |
| commit | 556b904e5d83ff9a9050ee9b6d0025cf1b3fbe03 (patch) | |
| tree | f27aab0352b29efadcc94dec317526d78871bda4 /zebra/debug.h | |
| parent | bb132d19d7a0f5687911ab2979beb260014c0a8c (diff) | |
zebra: Add `debug zebra kernel msgdump` functionality
Add command and associated functionality to enable dumping
raw netlink messages.
Ticket: CM-6568
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/debug.h')
| -rw-r--r-- | zebra/debug.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zebra/debug.h b/zebra/debug.h index 42af53f0d8..4416068bf2 100644 --- a/zebra/debug.h +++ b/zebra/debug.h @@ -32,6 +32,8 @@ #define ZEBRA_DEBUG_DETAIL 0x80 #define ZEBRA_DEBUG_KERNEL 0x01 +#define ZEBRA_DEBUG_KERNEL_MSGDUMP_SEND 0x20 +#define ZEBRA_DEBUG_KERNEL_MSGDUMP_RECV 0x40 #define ZEBRA_DEBUG_RIB 0x01 #define ZEBRA_DEBUG_RIB_DETAILED 0x02 @@ -48,6 +50,10 @@ #define IS_ZEBRA_DEBUG_DETAIL (zebra_debug_packet & ZEBRA_DEBUG_DETAIL) #define IS_ZEBRA_DEBUG_KERNEL (zebra_debug_kernel & ZEBRA_DEBUG_KERNEL) +#define IS_ZEBRA_DEBUG_KERNEL_MSGDUMP_SEND \ + (zebra_debug_kernel & ZEBRA_DEBUG_KERNEL_MSGDUMP_SEND) +#define IS_ZEBRA_DEBUG_KERNEL_MSGDUMP_RECV \ + (zebra_debug_kernel & ZEBRA_DEBUG_KERNEL_MSGDUMP_RECV) #define IS_ZEBRA_DEBUG_RIB \ (zebra_debug_rib & (ZEBRA_DEBUG_RIB | ZEBRA_DEBUG_RIB_DETAILED)) |
