aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nat
diff options
context:
space:
mode:
authorTom Jones <thj@freebsd.org>2024-01-30 16:47:27 +0000
committerOle Tr�an <otroan@employees.org>2024-03-26 15:08:49 +0000
commitdfd426c2c83f69e95fe8dab5b4827825230f1d7c (patch)
tree3bd280a2a453c1dac804c365b267dee928c78e75 /src/plugins/nat
parent4f30bc74577959efddfe4bc544cea4ec5c7019da (diff)
nat: Include platform specific headers on FreeBSD
Type: improvement Change-Id: I43f59037181ec6b76499e8ee1d82c04670119dc9 Signed-off-by: Tom Jones <thj@freebsd.org>
Diffstat (limited to 'src/plugins/nat')
-rw-r--r--src/plugins/nat/pnat/tests/pnat_test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/nat/pnat/tests/pnat_test.c b/src/plugins/nat/pnat/tests/pnat_test.c
index f6579dc5ca9..f515dd6d376 100644
--- a/src/plugins/nat/pnat/tests/pnat_test.c
+++ b/src/plugins/nat/pnat/tests/pnat_test.c
@@ -25,6 +25,11 @@
#include <vnet/fib/ip4_fib.h>
#include "../pnat.h"
#include <pnat/pnat.api_enum.h> /* For error counters */
+#ifdef __FreeBSD__
+#include <sys/socket.h>
+#include <sys/types.h>
+#include <netinet/in.h>
+#endif /* __FreeBSD__ */
#include <arpa/inet.h>
#include "pnat_test_stubs.h"