mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 20:18:56 +00:00
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)
This commit is contained in:
parent
d767b4d0d1
commit
54f03be970
@ -119,7 +119,7 @@ DEFUN (debug_zebra_packet,
|
|||||||
|
|
||||||
DEFUN (debug_zebra_packet_direct,
|
DEFUN (debug_zebra_packet_direct,
|
||||||
debug_zebra_packet_direct_cmd,
|
debug_zebra_packet_direct_cmd,
|
||||||
"debug zebra packet (recv|send)",
|
"debug zebra packet (recv|send|detail)",
|
||||||
DEBUG_STR
|
DEBUG_STR
|
||||||
"Zebra configuration\n"
|
"Zebra configuration\n"
|
||||||
"Debug option set for zebra packet\n"
|
"Debug option set for zebra packet\n"
|
||||||
@ -131,7 +131,8 @@ DEFUN (debug_zebra_packet_direct,
|
|||||||
zebra_debug_packet |= ZEBRA_DEBUG_SEND;
|
zebra_debug_packet |= ZEBRA_DEBUG_SEND;
|
||||||
if (strncmp ("recv", argv[0], strlen (argv[0])) == 0)
|
if (strncmp ("recv", argv[0], strlen (argv[0])) == 0)
|
||||||
zebra_debug_packet |= ZEBRA_DEBUG_RECV;
|
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;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user