Skip to content

Commit

Permalink
buffers: fix max headroom size
Browse files Browse the repository at this point in the history
Commit

    f7877d ("Implement DATA_V3 protocol features")

has added support for 64bit pkitd. This means that
headroom for TX buffer should be also increased by 4 bytes.

Signed-off-by: Lev Stipakov <[email protected]>
  • Loading branch information
lstipakov committed Sep 25, 2024
1 parent c0882ee commit 55cdbff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bufferpool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "bufferpool.h"
#include "trace.h"

#define OVPN_BUFFER_HEADROOM 26 // we prepend TCP packet size (2 bytes) and crypto overhead (24 bytes)
#define OVPN_BUFFER_HEADROOM 30 // we prepend TCP packet size (2 bytes) and max crypto overhead (28 bytes)

// good enough limit for in-flight packets
constexpr auto MAX_POOL_SIZE = 100'000;
Expand Down

0 comments on commit 55cdbff

Please sign in to comment.