FD.io VPP  v18.01.2-1-g9b554f3
Vector Packet Processing
adj_delegate.c File Reference
+ Include dependency graph for adj_delegate.c:

Go to the source code of this file.

Typedefs

typedef u8 *(* adj_delegate_format_t) (const adj_delegate_t *aed, u8 *s)
 typedef for printing a delegate More...
 

Functions

static adj_delegate_tadj_delegate_find_i (const ip_adjacency_t *adj, adj_delegate_type_t type, u32 *index)
 
adj_delegate_tadj_delegate_get (const ip_adjacency_t *adj, adj_delegate_type_t type)
 
void adj_delegate_remove (ip_adjacency_t *adj, adj_delegate_type_t type)
 
static int adj_delegate_cmp_for_sort (void *v1, void *v2)
 
static void adj_delegate_init (ip_adjacency_t *adj, adj_delegate_type_t type)
 
adj_delegate_tadj_delegate_find_or_add (ip_adjacency_t *adj, adj_delegate_type_t adt)
 
static u8adj_delegate_fmt_bfd (const adj_delegate_t *aed, u8 *s)
 Print a delegate that represents BFD tracking. More...
 
u8format_adj_deletegate (u8 *s, va_list *args)
 

Variables

static adj_delegate_format_t aed_formatters []
 A delegate type to formatter map. More...
 

Typedef Documentation

typedef u8*(* adj_delegate_format_t) (const adj_delegate_t *aed, u8 *s)

typedef for printing a delegate

Definition at line 111 of file adj_delegate.c.

Function Documentation

static int adj_delegate_cmp_for_sort ( void *  v1,
void *  v2 
)
static

Definition at line 69 of file adj_delegate.c.

+ Here is the caller graph for this function:

static adj_delegate_t* adj_delegate_find_i ( const ip_adjacency_t adj,
adj_delegate_type_t  type,
u32 index 
)
static

Definition at line 21 of file adj_delegate.c.

+ Here is the caller graph for this function:

adj_delegate_t* adj_delegate_find_or_add ( ip_adjacency_t adj,
adj_delegate_type_t  adt 
)

Definition at line 93 of file adj_delegate.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 118 of file adj_delegate.c.

+ Here is the call graph for this function:

adj_delegate_t* adj_delegate_get ( const ip_adjacency_t adj,
adj_delegate_type_t  type 
)

Definition at line 48 of file adj_delegate.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void adj_delegate_init ( ip_adjacency_t adj,
adj_delegate_type_t  type 
)
static

Definition at line 78 of file adj_delegate.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void adj_delegate_remove ( ip_adjacency_t adj,
adj_delegate_type_t  type 
)

Definition at line 55 of file adj_delegate.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_adj_deletegate ( u8 s,
va_list *  args 
)

Definition at line 137 of file adj_delegate.c.

+ Here is the caller graph for this function:

Variable Documentation

adj_delegate_format_t aed_formatters[]
static
Initial value:
=
{
}
static u8 * adj_delegate_fmt_bfd(const adj_delegate_t *aed, u8 *s)
Print a delegate that represents BFD tracking.
Definition: adj_delegate.c:118
BFD session state.
Definition: adj_delegate.h:28

A delegate type to formatter map.

Definition at line 131 of file adj_delegate.c.