FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
nsh_md2_ioam_export.c File Reference
+ Include dependency graph for nsh_md2_ioam_export.c:

Go to the source code of this file.

Macros

#define IPFIX_NSH_MD2_IOAM_EXPORT_ID   274
 

Functions

void nsh_md2_set_next_ioam_export_override (uword next)
 
int nsh_md2_ioam_export_enable_disable (ioam_export_main_t *em, u8 is_disable, ip4_address_t *collector_address, ip4_address_t *src_address)
 
static clib_error_tset_nsh_md2_ioam_export_ipfix_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tnsh_md2_ioam_export_init (vlib_main_t *vm)
 

Variables

ioam_export_main_t nsh_md2_ioam_export_main
 
vlib_node_registration_t nsh_md2_ioam_export_node
 (constructor) VLIB_REGISTER_NODE (nsh_md2_ioam_export_node) More...
 
static vlib_cli_command_t set_nsh_md2_ioam_ipfix_command
 (constructor) VLIB_CLI_COMMAND (set_nsh_md2_ioam_ipfix_command) More...
 

Macro Definition Documentation

◆ IPFIX_NSH_MD2_IOAM_EXPORT_ID

#define IPFIX_NSH_MD2_IOAM_EXPORT_ID   274

Definition at line 149 of file nsh_md2_ioam_export.c.

Function Documentation

◆ nsh_md2_ioam_export_enable_disable()

int nsh_md2_ioam_export_enable_disable ( ioam_export_main_t em,
u8  is_disable,
ip4_address_t collector_address,
ip4_address_t src_address 
)

Definition at line 39 of file nsh_md2_ioam_export.c.

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

◆ nsh_md2_ioam_export_init()

static clib_error_t* nsh_md2_ioam_export_init ( vlib_main_t vm)
static

Definition at line 151 of file nsh_md2_ioam_export.c.

+ Here is the call graph for this function:

◆ nsh_md2_set_next_ioam_export_override()

void nsh_md2_set_next_ioam_export_override ( uword  next)

Definition at line 177 of file nsh.c.

+ Here is the caller graph for this function:

◆ set_nsh_md2_ioam_export_ipfix_command_fn()

static clib_error_t* set_nsh_md2_ioam_export_ipfix_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 91 of file nsh_md2_ioam_export.c.

+ Here is the call graph for this function:

Variable Documentation

◆ nsh_md2_ioam_export_main

ioam_export_main_t nsh_md2_ioam_export_main

Definition at line 32 of file nsh_md2_ioam_export.c.

◆ nsh_md2_ioam_export_node

vlib_node_registration_t nsh_md2_ioam_export_node
Initial value:
=
{
.name = "nsh-md2-ioam-export",
.vector_size = sizeof (u32),
.format_trace = format_export_trace,
.error_strings = export_error_strings,
.n_next_nodes = EXPORT_N_NEXT,
.next_nodes =
}

(constructor) VLIB_REGISTER_NODE (nsh_md2_ioam_export_node)

Definition at line 133 of file nsh_md2_ioam_node.c.

◆ set_nsh_md2_ioam_ipfix_command

vlib_cli_command_t set_nsh_md2_ioam_ipfix_command
static
Initial value:
=
{
.path = "set nsh-md2-ioam export ipfix",
.short_help = "set nsh-md2-ioam export ipfix collector <ip4-address> src <ip4-address>",
}

(constructor) VLIB_CLI_COMMAND (set_nsh_md2_ioam_ipfix_command)

Definition at line 140 of file nsh_md2_ioam_export.c.

EXPORT_NEXT_NSH_MD2_IOAM_INPUT
@ EXPORT_NEXT_NSH_MD2_IOAM_INPUT
Definition: nsh_md2_ioam_node.c:66
EXPORT_N_NEXT
@ EXPORT_N_NEXT
Definition: node.c:66
VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
format_export_trace
static u8 * format_export_trace(u8 *s, va_list *args)
Definition: node.c:32
nsh_md2_ioam_export_node_fn
static uword nsh_md2_ioam_export_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: nsh_md2_ioam_node.c:118
set_nsh_md2_ioam_export_ipfix_command_fn
static clib_error_t * set_nsh_md2_ioam_export_ipfix_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: nsh_md2_ioam_export.c:91
u32
unsigned int u32
Definition: types.h:88
export_error_strings
static char * export_error_strings[]
Definition: node.c:57
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123