FD.io VPP  v18.07-34-g55fbdb9
Vector Packet Processing
adj_delegate.c File Reference
+ Include dependency graph for adj_delegate.c:

Go to the source code of this file.

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)
 Get a delegate from an adjacency. More...
 
void adj_delegate_remove (adj_index_t ai, adj_delegate_type_t type)
 Remove a delegate from an adjacency. More...
 
static int adj_delegate_cmp_for_sort (void *v1, void *v2)
 
static void adj_delegate_init (ip_adjacency_t *adj, adj_delegate_type_t adt, index_t adi)
 
int adj_delegate_add (ip_adjacency_t *adj, adj_delegate_type_t adt, index_t adi)
 Add a delegate to an adjacency. More...
 
void adj_delegate_adj_deleted (ip_adjacency_t *adj)
 
u8adj_delegate_format (u8 *s, ip_adjacency_t *adj)
 
void adj_delegate_register_type (adj_delegate_type_t type, const adj_delegate_vft_t *vft)
 adj_delegate_register_type More...
 
adj_delegate_type_t adj_delegate_register_new_type (const adj_delegate_vft_t *vft)
 adj_delegate_register_new_type More...
 

Variables

static adj_delegate_vft_tad_vfts
 
static adj_delegate_type_t ad_max_id = ADJ_DELEGATE_BFD
 The value of the last dynamically allocated delegeate value. More...
 

Function Documentation

int adj_delegate_add ( ip_adjacency_t adj,
adj_delegate_type_t  fdt,
index_t  adi 
)

Add a delegate to an adjacency.

Parameters
aiThe adjacency to add the delegate to
typeThe type of delegate being added
adiThe provider's [pool] index of its attached objet

Definition at line 107 of file adj_delegate.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void adj_delegate_adj_deleted ( ip_adjacency_t adj)

Definition at line 128 of file adj_delegate.c.

+ Here is the caller graph for this function:

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

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

+ Here is the caller graph for this function:

u8* adj_delegate_format ( u8 s,
ip_adjacency_t adj 
)

Definition at line 144 of file adj_delegate.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

adj_delegate_t* adj_delegate_get ( const ip_adjacency_t adj,
adj_delegate_type_t  type 
)

Get a delegate from an adjacency.

Parameters
aiThe adjacency to get the delegate from
typeThe type of delegate being sought

Definition at line 58 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  adt,
index_t  adi 
)
static

Definition at line 90 of file adj_delegate.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

adj_delegate_type_t adj_delegate_register_new_type ( const adj_delegate_vft_t vft)

adj_delegate_register_new_type

create a new delegate type and register a new VFT

Register the function table for a new type

Definition at line 190 of file adj_delegate.c.

+ Here is the caller graph for this function:

void adj_delegate_register_type ( adj_delegate_type_t  type,
const adj_delegate_vft_t vft 
)

adj_delegate_register_type

Register a VFT for one of the built-in types.

Register the function table for a given type

Definition at line 171 of file adj_delegate.c.

+ Here is the caller graph for this function:

void adj_delegate_remove ( adj_index_t  ai,
adj_delegate_type_t  type 
)

Remove a delegate from an adjacency.

Parameters
aiThe adjacency to remove the delegate from
typeThe type of delegate being removed

Definition at line 65 of file adj_delegate.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

The value of the last dynamically allocated delegeate value.

Definition at line 28 of file adj_delegate.c.

adj_delegate_vft_t* ad_vfts
static

Definition at line 23 of file adj_delegate.c.