summaryrefslogtreecommitdiffstats
path: root/src/vnet/ipfix-export
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-10-20 14:59:43 -0700
committerDave Barach <openvpp@barachs.net>2020-10-21 10:56:34 +0000
commitb040f98a88954ccf2e63fd7b2676865a2dbe0078 (patch)
tree8dd81604626dbb5cda19540a439e491a197e5491 /src/vnet/ipfix-export
parent8aa18562152b0d135a72d27e3dd72a831b68d0ce (diff)
misc: minimize dependencies on udp.h
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Id13f33843b230a1d169560742c4f7b2dc17d8718
Diffstat (limited to 'src/vnet/ipfix-export')
-rw-r--r--src/vnet/ipfix-export/flow_api.c1
-rw-r--r--src/vnet/ipfix-export/flow_report.c1
-rw-r--r--src/vnet/ipfix-export/flow_report.h2
-rw-r--r--src/vnet/ipfix-export/flow_report_classify.c2
4 files changed, 5 insertions, 1 deletions
diff --git a/src/vnet/ipfix-export/flow_api.c b/src/vnet/ipfix-export/flow_api.c
index 217cf31d691..226db2686ac 100644
--- a/src/vnet/ipfix-export/flow_api.c
+++ b/src/vnet/ipfix-export/flow_api.c
@@ -20,6 +20,7 @@
#include <vnet/vnet.h>
#include <vlibmemory/api.h>
#include <vnet/ip/ip_types_api.h>
+#include <vnet/udp/udp_local.h>
#include <vnet/interface.h>
#include <vnet/api_errno.h>
diff --git a/src/vnet/ipfix-export/flow_report.c b/src/vnet/ipfix-export/flow_report.c
index 56a2d16b8d5..a831c3cbede 100644
--- a/src/vnet/ipfix-export/flow_report.c
+++ b/src/vnet/ipfix-export/flow_report.c
@@ -17,6 +17,7 @@
*/
#include <vnet/ipfix-export/flow_report.h>
#include <vnet/api_errno.h>
+#include <vnet/udp/udp.h>
flow_report_main_t flow_report_main;
diff --git a/src/vnet/ipfix-export/flow_report.h b/src/vnet/ipfix-export/flow_report.h
index a26232d5919..30c11760c92 100644
--- a/src/vnet/ipfix-export/flow_report.h
+++ b/src/vnet/ipfix-export/flow_report.h
@@ -23,7 +23,7 @@
#include <vnet/ip/ip_packet.h>
#include <vnet/ip/ip4_packet.h>
#include <vnet/ip/ip6_packet.h>
-#include <vnet/udp/udp.h>
+#include <vnet/udp/udp_packet.h>
#include <vlib/cli.h>
#include <vppinfra/error.h>
#include <vppinfra/hash.h>
diff --git a/src/vnet/ipfix-export/flow_report_classify.c b/src/vnet/ipfix-export/flow_report_classify.c
index 58f623db145..21b6411a292 100644
--- a/src/vnet/ipfix-export/flow_report_classify.c
+++ b/src/vnet/ipfix-export/flow_report_classify.c
@@ -16,6 +16,8 @@
#include <vnet/ipfix-export/flow_report_classify.h>
#include <vnet/api_errno.h>
#include <vnet/classify/vnet_classify.h>
+#include <vnet/ip/ip4.h>
+#include <vnet/udp/udp_local.h>
/* Common prefix of tcp and udp headers
* containing only source and destination port fields */