FD.io VPP
v17.04-9-g99c0734
Vector Packet Processing
Main Page
Related Pages
Data Structures
Source
Files
Symbols
FD.io VPP
Vector Packet Processing
Release Notes
Debug CLI
Startup Configuration
Todo List
Node Identifiers
Data Structures
Source
Files
Symbols
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
flowperpkt.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 flowperpkt 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
manual_print define flowperpkt_tx_interface_add_del
16
{
17
/* Client identifier, set from api_main.my_client_index */
18
u32
client_index
;
19
20
/* Arbitrary context, so client can match reply to request */
21
u32
context
;
22
23
/* Enable / disable the feature */
24
u8
is_add
;
25
u8
which
;
/* 0 = ipv4, 1 = l2, 2 = ipv6 */
26
27
/* Interface handle */
28
u32
sw_if_index
;
29
};
30
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
34
*/
35
define flowperpkt_tx_interface_add_del_reply
36
{
37
/* From the request */
38
u32
context
;
39
40
/* Return value, zero means all OK */
41
i32
retval
;
42
};
43
44
define flowperpkt_params
45
{
46
u32
client_index
;
47
u32
context
;
48
u8
record_l2
;
49
u8
record_l3
;
50
u8
record_l4
;
51
u32
active_timer
;
/* ~0 is off, 0 is default */
52
u32
passive_timer
;
/* ~0 is off, 0 is default */
53
};
54
55
define flowperpkt_params_reply
56
{
57
u32
context
;
58
i32
retval
;
59
};
vl_api_flowperpkt_params_t::record_l2
u8 record_l2
Definition:
flowperpkt.api:48
vl_api_flowperpkt_params_t::active_timer
u32 active_timer
Definition:
flowperpkt.api:51
vl_api_flowperpkt_tx_interface_add_del_t::which
u8 which
Definition:
flowperpkt.api:25
vl_api_flowperpkt_params_t::passive_timer
u32 passive_timer
Definition:
flowperpkt.api:52
vl_api_flowperpkt_tx_interface_add_del_reply_t::context
u32 context
Definition:
flowperpkt.api:38
vl_api_flowperpkt_params_reply_t::context
u32 context
Definition:
flowperpkt.api:57
vl_api_flowperpkt_tx_interface_add_del_reply_t::retval
i32 retval
Definition:
flowperpkt.api:41
vl_api_flowperpkt_params_t::record_l4
u8 record_l4
Definition:
flowperpkt.api:50
i32
int i32
Definition:
types.h:81
vl_api_flowperpkt_params_t::client_index
u32 client_index
Definition:
flowperpkt.api:46
vl_api_flowperpkt_tx_interface_add_del_t::context
u32 context
Definition:
flowperpkt.api:21
vl_api_flowperpkt_tx_interface_add_del_t::client_index
u32 client_index
Definition:
flowperpkt.api:18
vl_api_flowperpkt_tx_interface_add_del_t::sw_if_index
u32 sw_if_index
Definition:
flowperpkt.api:28
u32
unsigned int u32
Definition:
types.h:88
u8
unsigned char u8
Definition:
types.h:56
vl_api_flowperpkt_tx_interface_add_del_t::is_add
u8 is_add
Definition:
flowperpkt.api:24
vl_api_flowperpkt_params_t::context
u32 context
Definition:
flowperpkt.api:47
vl_api_flowperpkt_params_t::record_l3
u8 record_l3
Definition:
flowperpkt.api:49
vl_api_flowperpkt_params_reply_t::retval
i32 retval
Definition:
flowperpkt.api:58
src
plugins
flowperpkt
flowperpkt.api
Generated on Mon May 15 2017 20:49:50 for FD.io VPP by
1.8.11