|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
32 #include <ioam/export-vxlan-gpe/vxlan_gpe_ioam_export.api_enum.h>
33 #include <ioam/export-vxlan-gpe/vxlan_gpe_ioam_export.api_types.h>
35 #define REPLY_MSG_ID_BASE sm->msg_id_base
58 vxlan_gpe_decap_ioam_node =
60 if (!vxlan_gpe_decap_ioam_node)
99 vl_api_vxlan_gpe_ioam_export_enable_disable_reply_t *rmp;
109 REPLY_MACRO (VL_API_VXLAN_GPE_IOAM_EXPORT_ENABLE_DISABLE_REPLY);
130 else if (
unformat (input,
"disable"))
136 if (collector.
as_u32 == 0)
164 .path =
"set vxlan-gpe-ioam export ipfix",
165 .short_help =
"set vxlan-gpe-ioam export ipfix collector <ip4-address> src <ip4-address>",
170 #include <ioam/export-vxlan-gpe/vxlan_gpe_ioam_export.api.c>
void vxlan_gpe_set_next_override(uword next)
static vlib_cli_command_t set_vxlan_gpe_ioam_ipfix_command
(constructor) VLIB_CLI_COMMAND (set_vxlan_gpe_ioam_ipfix_command)
static uword vlib_node_add_next(vlib_main_t *vm, uword node, uword next_node)
ioam_export_main_t vxlan_gpe_ioam_export_main
vl_api_ip4_address_t collector_address
@ VXLAN_GPE_DECAP_IOAM_V4_NEXT_POP
#define clib_error_return(e, args...)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
static void vlib_process_signal_event(vlib_main_t *vm, uword node_index, uword type_opaque, uword data)
vlib_node_registration_t vxlan_export_node
(constructor) VLIB_REGISTER_NODE (vxlan_export_node)
static void setup_message_id_table(api_main_t *am)
vl_api_ip4_address_t src_address
vnet_main_t * vnet_get_main(void)
static int ioam_export_thread_buffer_init(ioam_export_main_t *em, vlib_main_t *vm)
#define VLIB_CLI_COMMAND(x,...)
int vxlan_gpe_ioam_export_enable_disable(ioam_export_main_t *em, u8 is_disable, ip4_address_t *collector_address, ip4_address_t *src_address)
struct _vlib_node_registration vlib_node_registration_t
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
u32 export_process_node_index
static void vl_api_vxlan_gpe_ioam_export_enable_disable_t_handler(vl_api_vxlan_gpe_ioam_export_enable_disable_t *mp)
vlib_node_t * vlib_get_node_by_name(vlib_main_t *vm, u8 *name)
static void ioam_export_reset_next_node(ioam_export_main_t *em)
#define VLIB_INIT_FUNCTION(x)
#define IPFIX_VXLAN_IOAM_EXPORT_ID
static clib_error_t * vxlan_gpe_ioam_export_init(vlib_main_t *vm)
clib_error_t *() vlib_init_function_t(struct vlib_main_t *vm)
static int ioam_export_header_create(ioam_export_main_t *em, ip4_address_t *collector_address, ip4_address_t *src_address)
static void ioam_export_header_cleanup(ioam_export_main_t *em, ip4_address_t *collector_address, ip4_address_t *src_address)
static void ioam_export_thread_buffer_free(ioam_export_main_t *em)
static f64 vlib_time_now(vlib_main_t *vm)
static clib_error_t * set_vxlan_gpe_ioam_export_ipfix_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
ip4_address_t src_address
vl_api_address_union_t src_address
ip4_address_t ipfix_collector