FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
am.c File Reference
+ Include dependency graph for am.c:

Go to the source code of this file.

Functions

static int srv6_am_localsid_creation_fn (ip6_sr_localsid_t *localsid)
 
static int srv6_am_localsid_removal_fn (ip6_sr_localsid_t *localsid)
 
u8format_srv6_am_localsid (u8 *s, va_list *args)
 
uword unformat_srv6_am_localsid (unformat_input_t *input, va_list *args)
 
static u8format_srv6_am_dpo (u8 *s, va_list *args)
 
void srv6_am_dpo_lock (dpo_id_t *dpo)
 
void srv6_am_dpo_unlock (dpo_id_t *dpo)
 
static clib_error_tsrv6_am_init (vlib_main_t *vm)
 
 VNET_FEATURE_INIT (srv6_am_rewrite, static)
 
 VLIB_PLUGIN_REGISTER ()
 

Variables

unsigned char function_name [] = "SRv6-AM-plugin"
 
unsigned char keyword_str [] = "End.AM"
 
unsigned char def_str [] = "Endpoint to SR-unaware appliance via masquerading"
 
unsigned char params_str [] = "nh <next-hop> oif <iface-out> iif <iface-in>"
 
srv6_am_main_t srv6_am_main
 
static const dpo_vft_t srv6_am_vft
 
static const char *const srv6_am_ip6_nodes []
 
static const char *const *const srv6_am_nodes [DPO_PROTO_NUM]
 

Function Documentation

◆ format_srv6_am_dpo()

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

Definition at line 163 of file am.c.

+ Here is the call graph for this function:

◆ format_srv6_am_localsid()

u8* format_srv6_am_localsid ( u8 s,
va_list *  args 
)

Definition at line 102 of file am.c.

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

◆ srv6_am_dpo_lock()

void srv6_am_dpo_lock ( dpo_id_t dpo)

Definition at line 172 of file am.c.

◆ srv6_am_dpo_unlock()

void srv6_am_dpo_unlock ( dpo_id_t dpo)

Definition at line 177 of file am.c.

◆ srv6_am_init()

static clib_error_t* srv6_am_init ( vlib_main_t vm)
static

Definition at line 198 of file am.c.

+ Here is the call graph for this function:

◆ srv6_am_localsid_creation_fn()

static int srv6_am_localsid_creation_fn ( ip6_sr_localsid_t localsid)
static

Definition at line 37 of file am.c.

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

◆ srv6_am_localsid_removal_fn()

static int srv6_am_localsid_removal_fn ( ip6_sr_localsid_t localsid)
static

Definition at line 76 of file am.c.

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

◆ unformat_srv6_am_localsid()

uword unformat_srv6_am_localsid ( unformat_input_t input,
va_list *  args 
)

Definition at line 125 of file am.c.

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

◆ VLIB_PLUGIN_REGISTER()

VLIB_PLUGIN_REGISTER ( )

◆ VNET_FEATURE_INIT()

VNET_FEATURE_INIT ( srv6_am_rewrite  ,
static   
)
+ Here is the caller graph for this function:

Variable Documentation

◆ def_str

unsigned char def_str[] = "Endpoint to SR-unaware appliance via masquerading"

Definition at line 29 of file am.c.

◆ function_name

unsigned char function_name[] = "SRv6-AM-plugin"

Definition at line 27 of file am.c.

◆ keyword_str

unsigned char keyword_str[] = "End.AM"

Definition at line 28 of file am.c.

◆ params_str

unsigned char params_str[] = "nh <next-hop> oif <iface-out> iif <iface-in>"

Definition at line 30 of file am.c.

◆ srv6_am_ip6_nodes

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

Definition at line 187 of file am.c.

◆ srv6_am_main

srv6_am_main_t srv6_am_main

Definition at line 32 of file am.c.

◆ srv6_am_nodes

const char* const* const srv6_am_nodes[DPO_PROTO_NUM]
static
Initial value:
= {
}
static const char *const srv6_am_ip6_nodes[]
Definition: am.c:187

Definition at line 192 of file am.c.

◆ srv6_am_vft

const dpo_vft_t srv6_am_vft
static
Initial value:
= {
.dv_lock = srv6_am_dpo_lock,
.dv_unlock = srv6_am_dpo_unlock,
.dv_format = format_srv6_am_dpo,
}
static u8 * format_srv6_am_dpo(u8 *s, va_list *args)
Definition: am.c:163
void srv6_am_dpo_lock(dpo_id_t *dpo)
Definition: am.c:172
void srv6_am_dpo_unlock(dpo_id_t *dpo)
Definition: am.c:177

Definition at line 181 of file am.c.