FD.io VPP  v17.07-30-g839fa73
Vector Packet Processing
flowprobe.api
Go to the documentation of this file.
1 /* Define a simple enable-disable binary API to control the feature */
2 
3 /** \file
4  This file defines the vpp control-plane API messages
5  used to control the flowprobe plugin
6 */
7 
8 /** \brief Enable / disable per-packet IPFIX recording on an interface
9  @param client_index - opaque cookie to identify the sender
10  @param context - sender context, to match reply w/ request
11  @param is_add - add address if non-zero, else delete
12  @param is_ipv6 - if non-zero the address is ipv6, else ipv4
13  @param sw_if_index - index of the interface
14 */
15 autoreply manual_print define flowprobe_tx_interface_add_del
16 {
17  /* Client identifier, set from api_main.my_client_index */
19 
20  /* Arbitrary context, so client can match reply to request */
22 
23  /* Enable / disable the feature */
25  u8 which; /* 0 = ipv4, 1 = l2, 2 = ipv6 */
26 
27  /* Interface handle */
29 };
30 
31 autoreply define flowprobe_params
32 {
38  u32 active_timer; /* ~0 is off, 0 is default */
39  u32 passive_timer; /* ~0 is off, 0 is default */
40 };
static int flowprobe_params(flowprobe_main_t *fm, u8 record_l2, u8 record_l3, u8 record_l4, u32 active_timer, u32 passive_timer)
Definition: flowprobe.c:692
unsigned int u32
Definition: types.h:88
unsigned char u8
Definition: types.h:56