19 #ifndef __included_bfd_api_h__ 20 #define __included_bfd_api_h__ 26 #define foreach_bfd_transport(F) \ 27 F (UDP4, "ip4-rewrite") \ 28 F (UDP6, "ip6-rewrite") 32 #define F(t, n) BFD_TRANSPORT_##t, 42 const ip46_address_t * peer_addr,
43 u32 desired_min_tx_usec,
u32 required_min_rx_usec,
44 u8 detect_mult,
u8 is_authenticated,
u32 conf_key_id,
52 const ip46_address_t * peer_addr,
53 u32 desired_min_tx_usec,
u32 required_min_rx_usec,
60 const ip46_address_t * local_addr,
61 const ip46_address_t * peer_addr);
67 const ip46_address_t * local_addr,
68 const ip46_address_t * peer_addr,
86 const ip46_address_t * local_addr,
87 const ip46_address_t * peer_addr,
88 u32 conf_key_id,
u8 bfd_key_id,
95 const ip46_address_t * local_addr,
96 const ip46_address_t * peer_addr,
vnet_api_error_t bfd_udp_mod_session(u32 sw_if_index, const ip46_address_t *local_addr, const ip46_address_t *peer_addr, u32 desired_min_tx_usec, u32 required_min_rx_usec, u8 detect_mult)
modify existing session
vnet_api_error_t bfd_udp_add_session(u32 sw_if_index, const ip46_address_t *local_addr, const ip46_address_t *peer_addr, u32 desired_min_tx_usec, u32 required_min_rx_usec, u8 detect_mult, u8 is_authenticated, u32 conf_key_id, u8 bfd_key_id)
create a new bfd session
vnet_api_error_t bfd_auth_del_key(u32 conf_key_id)
delete existing authentication key
vnet_api_error_t bfd_udp_del_echo_source()
unset echo-source interface
vnet_api_error_t bfd_udp_del_session(u32 sw_if_index, const ip46_address_t *local_addr, const ip46_address_t *peer_addr)
delete existing session
vnet_api_error_t bfd_auth_set_key(u32 conf_key_id, u8 auth_type, u8 key_len, const u8 *key)
create or modify bfd authentication key
#define foreach_bfd_transport(F)
vnet_api_error_t bfd_udp_session_set_flags(u32 sw_if_index, const ip46_address_t *local_addr, const ip46_address_t *peer_addr, u8 admin_up_down)
set session admin down/up
vnet_api_error_t bfd_udp_auth_activate(u32 sw_if_index, const ip46_address_t *local_addr, const ip46_address_t *peer_addr, u32 conf_key_id, u8 bfd_key_id, u8 is_delayed)
activate authentication for existing session
vnet_api_error_t bfd_udp_set_echo_source(u32 loopback_sw_if_index)
set echo-source interface
vnet_api_error_t bfd_udp_auth_deactivate(u32 sw_if_index, const ip46_address_t *local_addr, const ip46_address_t *peer_addr, u8 is_delayed)
deactivate authentication for existing session