FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
bfd_api.h File Reference

BFD API declarations. More...

+ Include dependency graph for bfd_api.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define foreach_bfd_transport(F)
 
#define F(t, n)   BFD_TRANSPORT_##t,
 

Enumerations

enum  bfd_transport_e { foreach_bfd_transport =(F) }
 

Functions

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 More...
 
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 More...
 
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 More...
 
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 More...
 
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 More...
 
vnet_api_error_t bfd_auth_del_key (u32 conf_key_id)
 delete existing authentication key More...
 
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 More...
 
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 More...
 
vnet_api_error_t bfd_udp_set_echo_source (u32 loopback_sw_if_index)
 set echo-source interface More...
 
vnet_api_error_t bfd_udp_del_echo_source ()
 unset echo-source interface More...
 

Detailed Description

BFD API declarations.

Definition in file bfd_api.h.

Macro Definition Documentation

◆ F

#define F (   t,
 
)    BFD_TRANSPORT_##t,

Definition at line 32 of file bfd_api.h.

◆ foreach_bfd_transport

#define foreach_bfd_transport (   F)
Value:
F (UDP4, "ip4-rewrite") \
F (UDP6, "ip6-rewrite")
#define F(t, n)
Definition: bfd_api.h:32

Definition at line 26 of file bfd_api.h.

Enumeration Type Documentation

◆ bfd_transport_e

Enumerator
foreach_bfd_transport 

Definition at line 30 of file bfd_api.h.

Function Documentation

◆ bfd_auth_del_key()

vnet_api_error_t bfd_auth_del_key ( u32  conf_key_id)

delete existing authentication key

Definition at line 2219 of file bfd_main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bfd_auth_set_key()

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

Definition at line 2163 of file bfd_main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bfd_udp_add_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

Definition at line 742 of file bfd_udp.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bfd_udp_auth_activate()

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

Definition at line 858 of file bfd_udp.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bfd_udp_auth_deactivate()

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

Definition at line 889 of file bfd_udp.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bfd_udp_del_echo_source()

vnet_api_error_t bfd_udp_del_echo_source ( )

unset echo-source interface

+ Here is the caller graph for this function:

◆ bfd_udp_del_session()

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

Definition at line 816 of file bfd_udp.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bfd_udp_mod_session()

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

Definition at line 789 of file bfd_udp.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bfd_udp_session_set_flags()

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

Definition at line 837 of file bfd_udp.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bfd_udp_set_echo_source()

vnet_api_error_t bfd_udp_set_echo_source ( u32  loopback_sw_if_index)

set echo-source interface

Definition at line 83 of file bfd_udp.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: