diff options
author | Florin Coras <fcoras@cisco.com> | 2020-10-20 14:59:43 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2020-10-21 10:56:34 +0000 |
commit | b040f98a88954ccf2e63fd7b2676865a2dbe0078 (patch) | |
tree | 8dd81604626dbb5cda19540a439e491a197e5491 /src/plugins/nat/lib | |
parent | 8aa18562152b0d135a72d27e3dd72a831b68d0ce (diff) |
misc: minimize dependencies on udp.h
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Id13f33843b230a1d169560742c4f7b2dc17d8718
Diffstat (limited to 'src/plugins/nat/lib')
-rw-r--r-- | src/plugins/nat/lib/inlines.h | 2 | ||||
-rw-r--r-- | src/plugins/nat/lib/ipfix_logging.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/nat/lib/inlines.h b/src/plugins/nat/lib/inlines.h index 107944915cd..fe1f7dd27bc 100644 --- a/src/plugins/nat/lib/inlines.h +++ b/src/plugins/nat/lib/inlines.h @@ -18,6 +18,8 @@ #ifndef included_nat_inlines_h__ #define included_nat_inlines_h__ +#include <vnet/ip/icmp46_packet.h> + always_inline nat_protocol_t ip_proto_to_nat_proto (u8 ip_proto) { diff --git a/src/plugins/nat/lib/ipfix_logging.c b/src/plugins/nat/lib/ipfix_logging.c index e4fc0cedf19..7226fb72086 100644 --- a/src/plugins/nat/lib/ipfix_logging.c +++ b/src/plugins/nat/lib/ipfix_logging.c @@ -16,6 +16,8 @@ */ #include <vnet/ipfix-export/flow_report.h> +#include <vnet/ip/ip4.h> +#include <vnet/udp/udp_local.h> #include <vlibmemory/api.h> #include <vppinfra/atomics.h> #include <nat/lib/ipfix_logging.h> |