FD.io VPP  v17.07.01-10-g3be13f0
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 73 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 114 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 37 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 51 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 123 of file srv6_localsid_sample.c.

void srv6_localsid_sample_dpo_unlock ( dpo_id_t dpo)

Definition at line 128 of file srv6_localsid_sample.c.

static clib_error_t* srv6_localsid_sample_init ( vlib_main_t vm)
static

Definition at line 148 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 87 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 31 of file srv6_localsid_sample.c.

unsigned char keyword_str[32] = "new_srv6_localsid"

Definition at line 30 of file srv6_localsid_sample.c.

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

Definition at line 32 of file srv6_localsid_sample.c.

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

Definition at line 29 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 138 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 143 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 132 of file srv6_localsid_sample.c.