FD.io VPP  v17.01.1-3-gc6833f8
Vector Packet Processing
flowperpkt.h
Go to the documentation of this file.
1 /*
2  * flowperpkt.h - skeleton vpp engine plug-in header file
3  *
4  * Copyright (c) <current-year> <your-organization>
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at:
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 #ifndef __included_flowperpkt_h__
18 #define __included_flowperpkt_h__
19 
20 #include <vnet/vnet.h>
21 #include <vnet/ip/ip.h>
22 #include <vnet/ethernet/ethernet.h>
23 
24 #include <vppinfra/hash.h>
25 #include <vppinfra/error.h>
26 #include <vnet/flow/flow_report.h>
28 
29 /**
30  * @file
31  * @brief flow-per-packet plugin header file
32  */
33 typedef struct
34 {
35  /** API message ID base */
37 
38  /** Has the report been created? */
40 
41  /** ipfix buffers under construction, per-worker thread */
43  /** frames containing ipfix buffers, per-worker thread */
45  /** next record offset, per worker thread */
47 
48  /** Time reference pair */
51 
52  /** convenience vlib_main_t pointer */
54  /** convenience vnet_main_t pointer */
57 
59 
61 
62 void flowperpkt_flush_callback (void);
63 
64 #endif /* __included_flowperpkt_h__ */
65 
66 /*
67  * fd.io coding-style-patch-verification: ON
68  *
69  * Local Variables:
70  * eval: (c-set-style "gnu")
71  * End:
72  */
u64 nanosecond_time_0
Time reference pair.
Definition: flowperpkt.h:49
struct _vlib_node_registration vlib_node_registration_t
vlib_main_t * vlib_main
convenience vlib_main_t pointer
Definition: flowperpkt.h:53
u16 msg_id_base
API message ID base.
Definition: flowperpkt.h:36
int report_created
Has the report been created?
Definition: flowperpkt.h:39
unsigned long u64
Definition: types.h:89
vlib_buffer_t ** buffers_per_worker
ipfix buffers under construction, per-worker thread
Definition: flowperpkt.h:42
vnet_main_t * vnet_main
convenience vnet_main_t pointer
Definition: flowperpkt.h:55
u16 * next_record_offset_per_worker
next record offset, per worker thread
Definition: flowperpkt.h:46
flowperpkt_main_t flowperpkt_main
Definition: flowperpkt.c:53
unsigned short u16
Definition: types.h:57
void flowperpkt_flush_callback(void)
Definition: node.c:295
double f64
Definition: types.h:142
vlib_node_registration_t flowperpkt_node
IPFIX flow-per-packet graph node.
Definition: flowperpkt.h:60
vlib_frame_t ** frames_per_worker
frames containing ipfix buffers, per-worker thread
Definition: flowperpkt.h:44