From 837fbb119c0dcd10594485d15d700ceec7c0f33a Mon Sep 17 00:00:00 2001 From: Juraj Sloboda Date: Wed, 6 Jul 2016 23:11:47 -0700 Subject: Add binary API for IPFIX Change-Id: I3346b18126d65b72726e977dfb11ba4c380056c0 Signed-off-by: Juraj Sloboda --- vnet/vnet/flow/flow_report.c | 2 ++ vnet/vnet/flow/flow_report.h | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'vnet') diff --git a/vnet/vnet/flow/flow_report.c b/vnet/vnet/flow/flow_report.c index 77f92b132fe..38ad6136ef6 100644 --- a/vnet/vnet/flow/flow_report.c +++ b/vnet/vnet/flow/flow_report.c @@ -18,6 +18,8 @@ #include #include +flow_report_main_t flow_report_main; + int send_template_packet (flow_report_main_t *frm, flow_report_t *fr, u32 * buffer_indexp) diff --git a/vnet/vnet/flow/flow_report.h b/vnet/vnet/flow/flow_report.h index 50e15449d53..27aa81ae3ca 100644 --- a/vnet/vnet/flow/flow_report.h +++ b/vnet/vnet/flow/flow_report.h @@ -97,7 +97,7 @@ typedef struct flow_report_main { vnet_main_t * vnet_main; } flow_report_main_t; -flow_report_main_t flow_report_main; +extern flow_report_main_t flow_report_main; extern vlib_node_registration_t flow_report_process_node; @@ -115,4 +115,6 @@ typedef struct { int vnet_flow_report_add_del (flow_report_main_t *frm, vnet_flow_report_add_del_args_t *a); +void vnet_flow_reports_reset (flow_report_main_t * frm); + #endif /* __included_vnet_flow_report_h__ */ -- cgit 1.2.3-korg