1 /* Define a simple enable-disable binary API to control the feature */
4 This file defines the vpp control-plane API messages
5 used to control the flowperpkt plugin
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
15 manual_print define flowperpkt_tx_interface_add_del
17 /* Client identifier, set from api_main.my_client_index */
20 /* Arbitrary context, so client can match reply to request */
23 /* Enable / disable the feature */
25 u8 which; /* 0 = ipv4, 1 = l2, 2 = ipv6 */
27 /* Interface handle */
31 /** \brief Reply to enable/disable per-packet IPFIX recording messages
32 @param context - returned sender context, to match reply w/ request
33 @param retval - return code
35 define flowperpkt_tx_interface_add_del_reply
37 /* From the request */
40 /* Return value, zero means all OK */
44 define flowperpkt_params
51 u32 active_timer; /* ~0 is off, 0 is default */
52 u32 passive_timer; /* ~0 is off, 0 is default */
55 define flowperpkt_params_reply