diff options
| author | Russ White <russ@riw.us> | 2022-11-16 21:41:33 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-16 21:41:33 -0500 |
| commit | 54b3d90a4bb537607b5d16337ba3d1e56e271f12 (patch) | |
| tree | f1f1f2e7df4ca77d1dfe2816827ccf7ac11515c1 /pathd/pathd.h | |
| parent | e0f7fc58a2bb2feef6149a494b9456eabc38f920 (diff) | |
| parent | ec139f60f19088611a2fa177c1f81dd64f97d744 (diff) | |
Merge pull request #11992 from pguibert6WIND/pathd_debug
Pathd debug
Diffstat (limited to 'pathd/pathd.h')
| -rw-r--r-- | pathd/pathd.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pathd/pathd.h b/pathd/pathd.h index 81d7aa9105..bb2e63c04b 100644 --- a/pathd/pathd.h +++ b/pathd/pathd.h @@ -43,6 +43,10 @@ enum srte_protocol_origin { SRTE_ORIGIN_LOCAL = 3, }; +extern struct debug path_policy_debug; + +#define PATH_POLICY_DEBUG_BASIC 0x01 + enum srte_policy_status { SRTE_POLICY_STATUS_UNKNOWN = 0, SRTE_POLICY_STATUS_DOWN = 1, @@ -326,6 +330,8 @@ struct srte_candidate { RB_HEAD(srte_candidate_head, srte_candidate); RB_PROTOTYPE(srte_candidate_head, srte_candidate, entry, srte_candidate_compare) +#define ENDPOINT_STR_LENGTH IPADDR_STRING_SIZE + struct srte_policy { RB_ENTRY(srte_policy) entry; @@ -444,6 +450,7 @@ void srte_candidate_status_update(struct srte_candidate *candidate, int status); void srte_candidate_unset_segment_list(const char *originator, bool force); const char *srte_origin2str(enum srte_protocol_origin origin); void pathd_shutdown(void); +void path_policy_show_debugging(struct vty *vty); /* path_cli.c */ void path_cli_init(void); |
