diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-05-06 15:17:11 +0300 |
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-05-07 12:03:57 +0300 |
| commit | c97b34cf1a4b10afbb3542507de701fb74e93fcb (patch) | |
| tree | d38588e8c4219b62d494eb559740d8ca596c7640 /lib/bfd.h | |
| parent | 081f9b29dfe6adcbcb5f1e285602f83fa6776800 (diff) | |
lib: remove old bfd library
This commit also adds missing `bfd_protocol_integration_set_shutdown` to
ospf6d and pimd.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/bfd.h')
| -rw-r--r-- | lib/bfd.h | 78 |
1 files changed, 0 insertions, 78 deletions
@@ -40,17 +40,6 @@ extern "C" { #define BFD_MIN_DETECT_MULT 2 #define BFD_MAX_DETECT_MULT 255 -#define BFD_GBL_FLAG_IN_SHUTDOWN (1 << 0) /* The daemon in shutdown */ -struct bfd_gbl { - uint16_t flags; -}; - -#define BFD_FLAG_PARAM_CFG (1 << 0) /* parameters have been configured */ -#define BFD_FLAG_BFD_REG (1 << 1) /* Peer registered with BFD */ -#define BFD_FLAG_BFD_TYPE_MULTIHOP (1 << 2) /* Peer registered with BFD as multihop */ -#define BFD_FLAG_BFD_CBIT_ON (1 << 3) /* Peer registered with CBIT set to on */ -#define BFD_FLAG_BFD_CHECK_CONTROLPLANE (1 << 4) /* BFD and controlplane daemon are linked */ - #define BFD_STATUS_UNKNOWN (1 << 0) /* BFD session status never received */ #define BFD_STATUS_DOWN (1 << 1) /* BFD session status is down */ #define BFD_STATUS_UP (1 << 2) /* BFD session status is up */ @@ -58,72 +47,11 @@ struct bfd_gbl { #define BFD_PROFILE_NAME_LEN 64 -#define BFD_SET_CLIENT_STATUS(current_status, new_status) \ - do { \ - (current_status) = \ - (((new_status) == BFD_STATUS_ADMIN_DOWN) ? \ - BFD_STATUS_DOWN : (new_status));\ - } while (0) - -enum bfd_sess_type { - BFD_TYPE_NOT_CONFIGURED, - BFD_TYPE_SINGLEHOP, - BFD_TYPE_MULTIHOP -}; - -struct bfd_info { - uint16_t flags; - uint8_t detect_mult; - uint32_t desired_min_tx; - uint32_t required_min_rx; - time_t last_update; - uint8_t status; - enum bfd_sess_type type; - char profile[BFD_PROFILE_NAME_LEN]; -}; - -extern struct bfd_info *bfd_info_create(void); - -extern void bfd_info_free(struct bfd_info **bfd_info); - -extern int bfd_validate_param(struct vty *vty, const char *dm_str, - const char *rx_str, const char *tx_str, - uint8_t *dm_val, uint32_t *rx_val, - uint32_t *tx_val); - -extern void bfd_set_param(struct bfd_info **bfd_info, uint32_t min_rx, - uint32_t min_tx, uint8_t detect_mult, - const char *profile, int defaults, int *command); -extern void bfd_peer_sendmsg(struct zclient *zclient, struct bfd_info *bfd_info, - int family, void *dst_ip, void *src_ip, - char *if_name, int ttl, int multihop, int cbit, - int command, int set_flag, vrf_id_t vrf_id); - -extern const char *bfd_get_command_dbg_str(int command); - -extern struct interface *bfd_get_peer_info(struct stream *s, struct prefix *dp, - struct prefix *sp, int *status, - int *remote_cbit, - vrf_id_t vrf_id); - const char *bfd_get_status_str(int status); -extern void bfd_show_param(struct vty *vty, struct bfd_info *bfd_info, - int bfd_tag, int extra_space, bool use_json, - json_object *json_obj); - -extern void bfd_show_info(struct vty *vty, struct bfd_info *bfd_info, - int multihop, int extra_space, bool use_json, - json_object *json_obj); - extern void bfd_client_sendmsg(struct zclient *zclient, int command, vrf_id_t vrf_id); -extern void bfd_gbl_init(void); - -extern void bfd_gbl_exit(void); - - /* * BFD new API. */ @@ -519,12 +447,6 @@ struct bfd_session_arg { uint32_t min_tx; /** Detection multiplier. */ uint32_t detection_multiplier; - - /** BFD client information output. */ - struct bfd_info *bfd_info; - - /** Write registration indicator. */ - uint8_t set_flag; }; /** |
