diff options
author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2020-08-10 22:17:16 +0200 |
---|---|---|
committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2020-08-11 21:46:10 +0200 |
commit | 4e38f82a0ad11891d08147b32d4a6b65daa02a94 (patch) | |
tree | 5c9fec1df8cdfdb278ba78cb165a88d6b5d61d3f /bfdd/bfd.h | |
parent | bfdd: implement passive mode (diff) | |
download | frr-4e38f82a0ad11891d08147b32d4a6b65daa02a94.tar.xz frr-4e38f82a0ad11891d08147b32d4a6b65daa02a94.zip |
bfdd: simplify and remove duplicated code
Move the session configuration application logic to a single function.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'bfdd/bfd.h')
-rw-r--r-- | bfdd/bfd.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bfdd/bfd.h b/bfdd/bfd.h index 88ca17a9a..4f88e6b2e 100644 --- a/bfdd/bfd.h +++ b/bfdd/bfd.h @@ -618,6 +618,15 @@ void bfd_set_shutdown(struct bfd_session *bs, bool shutdown); */ void bfd_set_passive_mode(struct bfd_session *bs, bool passive); +/** + * Picks the BFD session configuration from the appropriated source: + * if using the default peer configuration prefer profile (if it exists), + * otherwise use session. + * + * \param bs the BFD session. + */ +void bfd_session_apply(struct bfd_session *bs); + /* BFD hash data structures interface */ void bfd_initialize(void); void bfd_shutdown(void); |