From 7a15826e06390eb7eb8208b509eda05ea3e15463 Mon Sep 17 00:00:00 2001 From: "Fabio M. Di Nitto" Date: Wed, 21 Oct 2015 15:48:37 +0200 Subject: [PATCH] Revert "[global] reduce memory footprint by a long shot" This reverts commit 4b4290a2fafbeb4d08bf489caa35ea4c205b18b9. --- TODO | 3 +++ libknet/internals.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index fa50178..fad09cd 100644 --- a/TODO +++ b/TODO @@ -7,6 +7,9 @@ link/host level: - (issue) implement packet fragmentation?, is the only solution to avoid conflicts with tun/tap mtu setting and various others buffer sizes. + - (issue) sort out read buf from recv_from_links since it might be too small vs + sending out 128k (+header+encryption+....). this is also related + to max PMTU - (rfe) compress: should only compress user data, we will add a bit in the data header to indicate if the pckt is compressed or not (save time). this approach allow runtime change of compress. diff --git a/libknet/internals.h b/libknet/internals.h index b56f8a1..fdb30b5 100644 --- a/libknet/internals.h +++ b/libknet/internals.h @@ -17,7 +17,7 @@ #include "libknet.h" #include "onwire.h" -#define KNET_DATABUFSIZE KNET_MAX_PACKET_SIZE + KNET_HEADER_ALL_SIZE +#define KNET_DATABUFSIZE (KNET_MAX_PACKET_SIZE * 2) + KNET_HEADER_DATA_SIZE #define KNET_DATABUFSIZE_CRYPT KNET_DATABUFSIZE * 2 struct knet_listener { -- 2.39.5