[PATCH] Include extra headers needed for ICMP packet-building on FreeBSD

Daniel Lenski dlenski at gmail.com
Thu Aug 17 11:27:40 PDT 2017


From: Brennan Hildebrand <brennan at nthroot.org>

Signed-off-by: Daniel Lenski <dlenski at gmail.com>
---
 esp.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/esp.c b/esp.c
index ae60269..7876fd5 100644
--- a/esp.c
+++ b/esp.c
@@ -23,6 +23,10 @@
 #include <string.h>
 #include <stdlib.h>
 #include <errno.h>
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#include <netinet/in.h>
+#endif
 #include <netinet/ip.h>
 #include <netinet/ip_icmp.h>
 
-- 
2.7.4




More information about the openconnect-devel mailing list