FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
srv6_localsid_sample.c File Reference
+ Include dependency graph for srv6_localsid_sample.c:

Go to the source code of this file.

Functions

static int srv6_localsid_creation_fn (ip6_sr_localsid_t *localsid)
 
static int srv6_localsid_removal_fn (ip6_sr_localsid_t *localsid)
 
u8format_srv6_localsid_sample (u8 *s, va_list *args)
 
uword unformat_srv6_localsid_sample (unformat_input_t *input, va_list *args)
 
static u8format_srv6_localsid_sample_dpo (u8 *s, va_list *args)
 
void srv6_localsid_sample_dpo_lock (dpo_id_t *dpo)
 
void srv6_localsid_sample_dpo_unlock (dpo_id_t *dpo)
 
static clib_error_tsrv6_localsid_sample_init (vlib_main_t *vm)
 
 VLIB_PLUGIN_REGISTER ()
 

Variables

unsigned char srv6_localsid_name [32] = "Sample-SRv6-LocalSID-plugin"
 
unsigned char keyword_str [32] = "new_srv6_localsid"
 
unsigned char def_str [64] = "This is a definition of a sample new_srv6_localsid"
 
unsigned char params_str [32] = "<fib_table>"
 
const static dpo_vft_t srv6_localsid_sample_vft
 
const static char *const srv6_localsid_sample_ip6_nodes []
 
const static char *const *const srv6_localsid_sample_nodes [DPO_PROTO_NUM]
 

Function Documentation

◆ format_srv6_localsid_sample()

u8* format_srv6_localsid_sample ( u8 s,
va_list *  args 
)

Definition at line 72 of file srv6_localsid_sample.c.

+ Here is the caller graph for this function:

◆ format_srv6_localsid_sample_dpo()

static u8* format_srv6_localsid_sample_dpo ( u8 s,
va_list *  args 
)
static

Definition at line 113 of file srv6_localsid_sample.c.

◆ srv6_localsid_creation_fn()

static int srv6_localsid_creation_fn ( ip6_sr_localsid_t localsid)
static

Definition at line 36 of file srv6_localsid_sample.c.

+ Here is the caller graph for this function:

◆ srv6_localsid_removal_fn()

static int srv6_localsid_removal_fn ( ip6_sr_localsid_t localsid)
static

Definition at line 50 of file srv6_localsid_sample.c.

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

◆ srv6_localsid_sample_dpo_lock()

void srv6_localsid_sample_dpo_lock ( dpo_id_t dpo)

Definition at line 122 of file srv6_localsid_sample.c.

◆ srv6_localsid_sample_dpo_unlock()

void srv6_localsid_sample_dpo_unlock ( dpo_id_t dpo)

Definition at line 127 of file srv6_localsid_sample.c.

◆ srv6_localsid_sample_init()

static clib_error_t* srv6_localsid_sample_init ( vlib_main_t vm)
static

Definition at line 147 of file srv6_localsid_sample.c.

+ Here is the call graph for this function:

◆ unformat_srv6_localsid_sample()

uword unformat_srv6_localsid_sample ( unformat_input_t input,
va_list *  args 
)

Definition at line 86 of file srv6_localsid_sample.c.

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

◆ VLIB_PLUGIN_REGISTER()

VLIB_PLUGIN_REGISTER ( )

Variable Documentation

◆ def_str

unsigned char def_str[64] = "This is a definition of a sample new_srv6_localsid"

Definition at line 30 of file srv6_localsid_sample.c.

◆ keyword_str

unsigned char keyword_str[32] = "new_srv6_localsid"

Definition at line 29 of file srv6_localsid_sample.c.

◆ params_str

unsigned char params_str[32] = "<fib_table>"

Definition at line 31 of file srv6_localsid_sample.c.

◆ srv6_localsid_name

unsigned char srv6_localsid_name[32] = "Sample-SRv6-LocalSID-plugin"

Definition at line 28 of file srv6_localsid_sample.c.

◆ srv6_localsid_sample_ip6_nodes

const static char* const srv6_localsid_sample_ip6_nodes[]
static
Initial value:
= {
"srv6-localsid-sample",
NULL,
}

Definition at line 137 of file srv6_localsid_sample.c.

◆ srv6_localsid_sample_nodes

const static char* const * const srv6_localsid_sample_nodes[DPO_PROTO_NUM]
static
Initial value:

Definition at line 142 of file srv6_localsid_sample.c.

◆ srv6_localsid_sample_vft

const static dpo_vft_t srv6_localsid_sample_vft
static
Initial value:

Definition at line 131 of file srv6_localsid_sample.c.

srv6_localsid_sample_dpo_lock
void srv6_localsid_sample_dpo_lock(dpo_id_t *dpo)
Definition: srv6_localsid_sample.c:122
srv6_localsid_sample_dpo_unlock
void srv6_localsid_sample_dpo_unlock(dpo_id_t *dpo)
Definition: srv6_localsid_sample.c:127
format_srv6_localsid_sample_dpo
static u8 * format_srv6_localsid_sample_dpo(u8 *s, va_list *args)
Definition: srv6_localsid_sample.c:113
DPO_PROTO_IP6
@ DPO_PROTO_IP6
Definition: dpo.h:65
srv6_localsid_sample_ip6_nodes
const static char *const srv6_localsid_sample_ip6_nodes[]
Definition: srv6_localsid_sample.c:137