ports/net/ntopng/patches/patch-nDPI_example_reader_util_c

17 lines
316 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: nDPI/example/reader_util.c
--- nDPI/example/reader_util.c.orig
+++ nDPI/example/reader_util.c
@@ -24,6 +24,12 @@
#ifdef HAVE_CONFIG_H
#include "ndpi_config.h"
#endif
+#ifndef DLT_IPV4
+#define DLT_IPV4 228
+#endif
+#ifndef DLT_IPV6
+#define DLT_IPV6 229
+#endif
#include <stdlib.h>
#include <math.h>