FD.io VPP  v18.04-17-g3a0d853
Vector Packet Processing
adj_bfd.c File Reference
+ Include dependency graph for adj_bfd.c:

Go to the source code of this file.

Data Structures

struct  adj_bfd_delegate_t_
 BFD delegate daa. More...
 

Typedefs

typedef enum adj_bfd_state_t_ adj_bfd_state_t
 Distillation of the BFD session states into a go/no-go for using the associated tracked adjacency. More...
 
typedef struct adj_bfd_delegate_t_ adj_bfd_delegate_t
 BFD delegate daa. More...
 

Enumerations

enum  adj_bfd_state_t_ { ADJ_BFD_STATE_DOWN, ADJ_BFD_STATE_UP }
 Distillation of the BFD session states into a go/no-go for using the associated tracked adjacency. More...
 

Functions

static adj_bfd_delegate_tadj_bfd_from_base (adj_delegate_t *ad)
 
static const adj_bfd_delegate_tadj_bfd_from_const_base (const adj_delegate_t *ad)
 
static adj_bfd_state_t adj_bfd_bfd_state_to_fib (bfd_state_e bstate)
 
static void adj_bfd_update_walk (adj_index_t ai)
 
void adj_bfd_notify (bfd_listen_event_e event, const bfd_session_t *session)
 Callback function registered with BFD module to receive notifications of the CRUD of BFD sessions would be static but for the fact it's called from the unit-tests. More...
 
int adj_bfd_is_up (adj_index_t ai)
 
static u8adj_delegate_fmt_bfd (const adj_delegate_t *aed, u8 *s)
 Print a delegate that represents BFD tracking. More...
 
static clib_error_tadj_bfd_main_init (vlib_main_t *vm)
 

Variables

static adj_bfd_delegate_tabd_pool
 Pool of delegates. More...
 
static const adj_delegate_vft_t adj_delegate_vft
 

Typedef Documentation

BFD delegate daa.

Distillation of the BFD session states into a go/no-go for using the associated tracked adjacency.

Enumeration Type Documentation

Distillation of the BFD session states into a go/no-go for using the associated tracked adjacency.

Enumerator
ADJ_BFD_STATE_DOWN 
ADJ_BFD_STATE_UP 

Definition at line 26 of file adj_bfd.c.

Function Documentation

static adj_bfd_state_t adj_bfd_bfd_state_to_fib ( bfd_state_e  bstate)
static

Definition at line 74 of file adj_bfd.c.

+ Here is the caller graph for this function:

static adj_bfd_delegate_t* adj_bfd_from_base ( adj_delegate_t ad)
inlinestatic

Definition at line 54 of file adj_bfd.c.

+ Here is the caller graph for this function:

static const adj_bfd_delegate_t* adj_bfd_from_const_base ( const adj_delegate_t ad)
inlinestatic

Definition at line 64 of file adj_bfd.c.

+ Here is the caller graph for this function:

int adj_bfd_is_up ( adj_index_t  ai)

Definition at line 231 of file adj_bfd.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* adj_bfd_main_init ( vlib_main_t vm)
static

Definition at line 273 of file adj_bfd.c.

+ Here is the call graph for this function:

void adj_bfd_notify ( bfd_listen_event_e  event,
const bfd_session_t session 
)

Callback function registered with BFD module to receive notifications of the CRUD of BFD sessions would be static but for the fact it's called from the unit-tests.

Definition at line 107 of file adj_bfd.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void adj_bfd_update_walk ( adj_index_t  ai)
static

Definition at line 89 of file adj_bfd.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8* adj_delegate_fmt_bfd ( const adj_delegate_t aed,
u8 s 
)
static

Print a delegate that represents BFD tracking.

Definition at line 257 of file adj_bfd.c.

+ Here is the call graph for this function:

Variable Documentation

adj_bfd_delegate_t* abd_pool
static

Pool of delegates.

Definition at line 51 of file adj_bfd.c.

const adj_delegate_vft_t adj_delegate_vft
static
Initial value:
= {
.adv_format = adj_delegate_fmt_bfd,
}
static u8 * adj_delegate_fmt_bfd(const adj_delegate_t *aed, u8 *s)
Print a delegate that represents BFD tracking.
Definition: adj_bfd.c:257

Definition at line 268 of file adj_bfd.c.