Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

n2n: Add missing header files #1340

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions net/n2n/patches/101-Add-missing-header-zstd-build.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
--- a/src/edge_utils.c
+++ b/src/edge_utils.c
@@ -19,6 +19,7 @@
#include "n2n.h"
#include "network_traffic_filter.h"
#include "edge_utils_win32.h"
+#include <zstd.h>

/* heap allocation for compression as per lzo example doc */
#define HEAP_ALLOC(var,size) lzo_align_t __LZO_MMODEL var [ ((size) + (sizeof(lzo_align_t) - 1)) / sizeof(lzo_align_t) ]
--- a/tools/n2n-benchmark.c
+++ b/tools/n2n-benchmark.c
@@ -23,6 +23,7 @@
#endif

#include "n2n.h"
+#include <zstd.h>

#define DURATION 2.5 // test duration per algorithm
#define PACKETS_BEFORE_GETTIME 2047 // do not check time after every packet but after (2 ^ n - 1)
--- a/tools/tests-compress.c
+++ b/tools/tests-compress.c
@@ -22,6 +22,7 @@

#include "n2n.h"
#include "hexdump.h"
+#include <zstd.h>

/* heap allocation for compression as per lzo example doc */
#define HEAP_ALLOC(var,size) lzo_align_t __LZO_MMODEL var [ ((size) + (sizeof(lzo_align_t) - 1)) / sizeof(lzo_align_t) ]
Loading