diff options
author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2020-04-13 12:36:23 +0200 |
---|---|---|
committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2020-04-14 14:35:08 +0200 |
commit | 48da2c316908f8f841875f1e797de7cb8fb3b714 (patch) | |
tree | 094bc826532dcce8a829dadbf23bbfc0815455fe /bfdd/bfd.h | |
parent | Merge pull request #6017 from sarav511/ovrride (diff) | |
download | frr-48da2c316908f8f841875f1e797de7cb8fb3b714.tar.xz frr-48da2c316908f8f841875f1e797de7cb8fb3b714.zip |
bfdd: add debug fine tuning capabilities
Move most of the log messages to debug guards so they only get activated
if the user configured the proper debug level.
Current debug levels:
- Peer events.
- Zebra events.
- Network layer debugs.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'bfdd/bfd.h')
-rw-r--r-- | bfdd/bfd.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/bfdd/bfd.h b/bfdd/bfd.h index a786bb71b..1cc9ddb47 100644 --- a/bfdd/bfd.h +++ b/bfdd/bfd.h @@ -393,7 +393,26 @@ struct bfd_global { struct obslist bg_obslist; struct zebra_privs_t bfdd_privs; + + /* Debug options. */ + /* Show all peer state changes events. */ + bool debug_peer_event; + /* + * Show zebra message exchanges: + * - Interface add/delete. + * - Local address add/delete. + * - VRF add/delete. + */ + bool debug_zebra; + /* + * Show network level debug information: + * - Echo packets without session. + * - Unavailable peer sessions. + * - Network system call failures. + */ + bool debug_network; }; + extern struct bfd_global bglobal; extern const struct bfd_diag_str_list diag_list[]; extern const struct bfd_state_str_list state_list[]; |