FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
bfd_api.c File Reference

BFD binary API implementation. More...

+ Include dependency graph for bfd_api.c:

Go to the source code of this file.

Macros

#define REPLY_MSG_ID_BASE   bfd_main.msg_id_base
 
#define BFD_UDP_API_PARAM_COMMON_CODE
 
#define BFD_UDP_API_PARAM_FROM_MP(mp)   clib_net_to_host_u32 (mp->sw_if_index), &local_addr, &peer_addr
 

Functions

 pub_sub_handler (bfd_events, BFD_EVENTS)
 
static void vl_api_bfd_udp_add_t_handler (vl_api_bfd_udp_add_t *mp)
 
static void vl_api_bfd_udp_mod_t_handler (vl_api_bfd_udp_mod_t *mp)
 
static void vl_api_bfd_udp_del_t_handler (vl_api_bfd_udp_del_t *mp)
 
void send_bfd_udp_session_details (vl_api_registration_t *reg, u32 context, bfd_session_t *bs)
 
void send_bfd_udp_session_event (vl_api_registration_t *reg, u32 pid, bfd_session_t *bs)
 
void bfd_event (bfd_main_t *bm, bfd_session_t *bs)
 
static void vl_api_bfd_udp_session_dump_t_handler (vl_api_bfd_udp_session_dump_t *mp)
 
static void vl_api_bfd_udp_session_set_flags_t_handler (vl_api_bfd_udp_session_set_flags_t *mp)
 
static void vl_api_bfd_auth_set_key_t_handler (vl_api_bfd_auth_set_key_t *mp)
 
static void vl_api_bfd_auth_del_key_t_handler (vl_api_bfd_auth_del_key_t *mp)
 
static void vl_api_bfd_auth_keys_dump_t_handler (vl_api_bfd_auth_keys_dump_t *mp)
 
static void vl_api_bfd_udp_auth_activate_t_handler (vl_api_bfd_udp_auth_activate_t *mp)
 
static void vl_api_bfd_udp_auth_deactivate_t_handler (vl_api_bfd_udp_auth_deactivate_t *mp)
 
static void vl_api_bfd_udp_set_echo_source_t_handler (vl_api_bfd_udp_set_echo_source_t *mp)
 
static void vl_api_bfd_udp_del_echo_source_t_handler (vl_api_bfd_udp_del_echo_source_t *mp)
 
static void vl_api_bfd_udp_get_echo_source_t_handler (vl_api_bfd_udp_get_echo_source_t *mp)
 
static clib_error_tbfd_api_hookup (vlib_main_t *vm)
 
 VLIB_API_INIT_FUNCTION (bfd_api_hookup)
 

Detailed Description

BFD binary API implementation.

Definition in file bfd_api.c.

Macro Definition Documentation

◆ BFD_UDP_API_PARAM_COMMON_CODE

#define BFD_UDP_API_PARAM_COMMON_CODE
Value:
ip46_address_t local_addr; \
ip46_address_t peer_addr; \
ip_address_decode(&mp->local_addr, &local_addr); \
ip_address_decode(&mp->peer_addr, &peer_addr);

Definition at line 43 of file bfd_api.c.

◆ BFD_UDP_API_PARAM_FROM_MP

#define BFD_UDP_API_PARAM_FROM_MP (   mp)    clib_net_to_host_u32 (mp->sw_if_index), &local_addr, &peer_addr

Definition at line 49 of file bfd_api.c.

◆ REPLY_MSG_ID_BASE

#define REPLY_MSG_ID_BASE   bfd_main.msg_id_base

Definition at line 37 of file bfd_api.c.

Function Documentation

◆ bfd_api_hookup()

static clib_error_t* bfd_api_hookup ( vlib_main_t vm)
static

Definition at line 415 of file bfd_api.c.

+ Here is the call graph for this function:

◆ bfd_event()

void bfd_event ( bfd_main_t bm,
bfd_session_t bs 
)

Definition at line 194 of file bfd_api.c.

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

◆ pub_sub_handler()

pub_sub_handler ( bfd_events  ,
BFD_EVENTS   
)

◆ send_bfd_udp_session_details()

void send_bfd_udp_session_details ( vl_api_registration_t reg,
u32  context,
bfd_session_t bs 
)

Definition at line 109 of file bfd_api.c.

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

◆ send_bfd_udp_session_event()

void send_bfd_udp_session_event ( vl_api_registration_t reg,
u32  pid,
bfd_session_t bs 
)

Definition at line 152 of file bfd_api.c.

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

◆ vl_api_bfd_auth_del_key_t_handler()

static void vl_api_bfd_auth_del_key_t_handler ( vl_api_bfd_auth_del_key_t mp)
static

Definition at line 263 of file bfd_api.c.

+ Here is the call graph for this function:

◆ vl_api_bfd_auth_keys_dump_t_handler()

static void vl_api_bfd_auth_keys_dump_t_handler ( vl_api_bfd_auth_keys_dump_t mp)
static

Definition at line 272 of file bfd_api.c.

+ Here is the call graph for this function:

◆ vl_api_bfd_auth_set_key_t_handler()

static void vl_api_bfd_auth_set_key_t_handler ( vl_api_bfd_auth_set_key_t mp)
static

Definition at line 253 of file bfd_api.c.

+ Here is the call graph for this function:

◆ vl_api_bfd_udp_add_t_handler()

static void vl_api_bfd_udp_add_t_handler ( vl_api_bfd_udp_add_t mp)
static

Definition at line 53 of file bfd_api.c.

+ Here is the call graph for this function:

◆ vl_api_bfd_udp_auth_activate_t_handler()

static void vl_api_bfd_udp_auth_activate_t_handler ( vl_api_bfd_udp_auth_activate_t mp)
static

Definition at line 298 of file bfd_api.c.

+ Here is the call graph for this function:

◆ vl_api_bfd_udp_auth_deactivate_t_handler()

static void vl_api_bfd_udp_auth_deactivate_t_handler ( vl_api_bfd_udp_auth_deactivate_t mp)
static

Definition at line 316 of file bfd_api.c.

+ Here is the call graph for this function:

◆ vl_api_bfd_udp_del_echo_source_t_handler()

static void vl_api_bfd_udp_del_echo_source_t_handler ( vl_api_bfd_udp_del_echo_source_t mp)
static

Definition at line 349 of file bfd_api.c.

+ Here is the call graph for this function:

◆ vl_api_bfd_udp_del_t_handler()

static void vl_api_bfd_udp_del_t_handler ( vl_api_bfd_udp_del_t mp)
static

Definition at line 93 of file bfd_api.c.

+ Here is the call graph for this function:

◆ vl_api_bfd_udp_get_echo_source_t_handler()

static void vl_api_bfd_udp_get_echo_source_t_handler ( vl_api_bfd_udp_get_echo_source_t mp)
static

Definition at line 361 of file bfd_api.c.

+ Here is the call graph for this function:

◆ vl_api_bfd_udp_mod_t_handler()

static void vl_api_bfd_udp_mod_t_handler ( vl_api_bfd_udp_mod_t mp)
static

Definition at line 74 of file bfd_api.c.

+ Here is the call graph for this function:

◆ vl_api_bfd_udp_session_dump_t_handler()

static void vl_api_bfd_udp_session_dump_t_handler ( vl_api_bfd_udp_session_dump_t mp)
static

Definition at line 217 of file bfd_api.c.

+ Here is the call graph for this function:

◆ vl_api_bfd_udp_session_set_flags_t_handler()

static void vl_api_bfd_udp_session_set_flags_t_handler ( vl_api_bfd_udp_session_set_flags_t mp)
static

Definition at line 236 of file bfd_api.c.

+ Here is the call graph for this function:

◆ vl_api_bfd_udp_set_echo_source_t_handler()

static void vl_api_bfd_udp_set_echo_source_t_handler ( vl_api_bfd_udp_set_echo_source_t mp)
static

Definition at line 334 of file bfd_api.c.

+ Here is the call graph for this function:

◆ VLIB_API_INIT_FUNCTION()

VLIB_API_INIT_FUNCTION ( bfd_api_hookup  )