FD.io VPP  v18.10-32-g1161dda
Vector Packet Processing
ioam_export.c File Reference
+ Include dependency graph for ioam_export.c:

Go to the source code of this file.

Macros

#define vl_typedefs
 
#define vl_endianfun
 
#define vl_print(handle, ...)   vlib_cli_output (handle, __VA_ARGS__)
 
#define vl_printfun
 
#define vl_api_version(n, v)   static u32 api_version=(v);
 
#define REPLY_MSG_ID_BASE   sm->msg_id_base
 
#define foreach_ioam_export_plugin_api_msg   _(IOAM_EXPORT_IP6_ENABLE_DISABLE, ioam_export_ip6_enable_disable)
 
#define vl_msg_name_crc_list
 

Functions

int ioam_export_ip6_enable_disable (ioam_export_main_t *em, u8 is_disable, ip4_address_t *collector_address, ip4_address_t *src_address)
 
static void vl_api_ioam_export_ip6_enable_disable_t_handler (vl_api_ioam_export_ip6_enable_disable_t *mp)
 
static clib_error_tioam_export_plugin_api_hookup (vlib_main_t *vm)
 
static void setup_message_id_table (ioam_export_main_t *sm, api_main_t *am)
 
static clib_error_tset_ioam_export_ipfix_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tioam_export_init (vlib_main_t *vm)
 

Variables

ioam_export_main_t ioam_export_main
 
vlib_node_registration_t export_node
 (constructor) VLIB_REGISTER_NODE (export_node) More...
 
static vlib_cli_command_t set_ipfix_command
 (constructor) VLIB_CLI_COMMAND (set_ipfix_command) More...
 

Macro Definition Documentation

#define foreach_ioam_export_plugin_api_msg   _(IOAM_EXPORT_IP6_ENABLE_DISABLE, ioam_export_ip6_enable_disable)

Definition at line 58 of file ioam_export.c.

#define REPLY_MSG_ID_BASE   sm->msg_id_base

Definition at line 54 of file ioam_export.c.

#define vl_api_version (   n,
  v 
)    static u32 api_version=(v);

Definition at line 50 of file ioam_export.c.

#define vl_endianfun

Definition at line 39 of file ioam_export.c.

#define vl_msg_name_crc_list

Definition at line 138 of file ioam_export.c.

#define vl_print (   handle,
  ... 
)    vlib_cli_output (handle, __VA_ARGS__)

Definition at line 44 of file ioam_export.c.

#define vl_printfun

Definition at line 45 of file ioam_export.c.

#define vl_typedefs

Definition at line 34 of file ioam_export.c.

Function Documentation

static clib_error_t* ioam_export_init ( vlib_main_t vm)
static

Definition at line 206 of file ioam_export.c.

+ Here is the call graph for this function:

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

Definition at line 68 of file ioam_export.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* ioam_export_plugin_api_hookup ( vlib_main_t vm)
static

Definition at line 121 of file ioam_export.c.

+ Here is the caller graph for this function:

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

Definition at line 152 of file ioam_export.c.

+ Here is the call graph for this function:

static void setup_message_id_table ( ioam_export_main_t sm,
api_main_t am 
)
static

Definition at line 143 of file ioam_export.c.

+ Here is the caller graph for this function:

static void vl_api_ioam_export_ip6_enable_disable_t_handler ( vl_api_ioam_export_ip6_enable_disable_t mp)
static

Definition at line 105 of file ioam_export.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

Initial value:
=
{
.function = ip6_export_node_fn,
.name = "ip6-export",
.vector_size = sizeof (u32),
.format_trace = format_export_trace,
.error_strings = export_error_strings,
.n_next_nodes = EXPORT_N_NEXT,
.next_nodes =
{
[EXPORT_NEXT_POP_HBYH] = "ip6-pop-hop-by-hop"
},
}
static u8 * format_export_trace(u8 *s, va_list *args)
Definition: node.c:32
unsigned int u32
Definition: types.h:88
static uword ip6_export_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: node.c:140
#define ARRAY_LEN(x)
Definition: clib.h:61
static char * export_error_strings[]
Definition: node.c:57

(constructor) VLIB_REGISTER_NODE (export_node)

Definition at line 153 of file node.c.

ioam_export_main_t ioam_export_main

Definition at line 61 of file ioam_export.c.

vlib_cli_command_t set_ipfix_command
static
Initial value:
=
{
.path = "set ioam export ipfix",.short_help =
"set ioam export ipfix collector <ip4-address> src <ip4-address>",.
static clib_error_t * set_ioam_export_ipfix_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ioam_export.c:152

(constructor) VLIB_CLI_COMMAND (set_ipfix_command)

Definition at line 197 of file ioam_export.c.