FD.io VPP  v18.01.2-1-g9b554f3
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>"
 
static const dpo_vft_t srv6_localsid_sample_vft
 
static const char *const srv6_localsid_sample_ip6_nodes []
 
static const char *const *const srv6_localsid_sample_nodes [DPO_PROTO_NUM]
 

Function Documentation

u8* format_srv6_localsid_sample ( u8 s,
va_list *  args 
)

Definition at line 72 of file srv6_localsid_sample.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 113 of file srv6_localsid_sample.c.

+ Here is the call graph for this function:

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:

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:

void srv6_localsid_sample_dpo_lock ( dpo_id_t dpo)

Definition at line 122 of file srv6_localsid_sample.c.

void srv6_localsid_sample_dpo_unlock ( dpo_id_t dpo)

Definition at line 127 of file srv6_localsid_sample.c.

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:

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 ( )

+ Here is the caller graph for this function:

Variable Documentation

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.

unsigned char keyword_str[32] = "new_srv6_localsid"

Definition at line 29 of file srv6_localsid_sample.c.

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

Definition at line 31 of file srv6_localsid_sample.c.

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

Definition at line 28 of file srv6_localsid_sample.c.

const char* const srv6_localsid_sample_ip6_nodes[]
static
Initial value:
= {
"srv6-localsid-sample",
}
#define NULL
Definition: clib.h:55

Definition at line 137 of file srv6_localsid_sample.c.

const char* const* const srv6_localsid_sample_nodes[DPO_PROTO_NUM]
static
Initial value:
= {
}
static const char *const srv6_localsid_sample_ip6_nodes[]

Definition at line 142 of file srv6_localsid_sample.c.

const dpo_vft_t srv6_localsid_sample_vft
static
Initial value:
= {
}
void srv6_localsid_sample_dpo_unlock(dpo_id_t *dpo)
static u8 * format_srv6_localsid_sample_dpo(u8 *s, va_list *args)
void srv6_localsid_sample_dpo_lock(dpo_id_t *dpo)

Definition at line 131 of file srv6_localsid_sample.c.