FD.io VPP  v18.07-rc0-415-g6c78436
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

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

Definition at line 32 of file bfd_api.h.

#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

Enumerator
foreach_bfd_transport 

Definition at line 30 of file bfd_api.h.

Function Documentation

vnet_api_error_t bfd_auth_del_key ( u32  conf_key_id)

delete existing authentication key

Definition at line 2057 of file bfd_main.c.

+ Here is the caller graph for this function:

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 2001 of file bfd_main.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 668 of file bfd_udp.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 766 of file bfd_udp.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 789 of file bfd_udp.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

vnet_api_error_t bfd_udp_del_echo_source ( )

unset echo-source interface

+ Here is the caller graph for this function:

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 732 of file bfd_udp.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 711 of file bfd_udp.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 749 of file bfd_udp.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

vnet_api_error_t bfd_udp_set_echo_source ( u32  loopback_sw_if_index)

set echo-source interface

Definition at line 74 of file bfd_udp.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: