summaryrefslogtreecommitdiff
path: root/ecp/src
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2024-04-20 22:03:57 +0200
committerUros Majstorovic <majstor@majstor.org>2024-04-20 22:03:57 +0200
commit60357fa2e584459ec4cf0926440bd2920ffe11d4 (patch)
treea59cd7bc704d8409114911e72b960190df0e6f25 /ecp/src
parent84fdf2eb3a6ad5257344c0a06b3d3399ed5f27ed (diff)
adjusted max packet size
Diffstat (limited to 'ecp/src')
-rw-r--r--ecp/src/ecp/core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ecp/src/ecp/core.h b/ecp/src/ecp/core.h
index 843b5e9..b40d813 100644
--- a/ecp/src/ecp/core.h
+++ b/ecp/src/ecp/core.h
@@ -64,7 +64,7 @@
#define ECP_SIZE_PKT_HDR_IREP (ECP_SIZE_PROTO+1+ECP_SIZE_NONCE)
#define ECP_SIZE_PKT_HDR_OREQ (ECP_SIZE_PROTO+1+ECP_SIZE_ECDH_PUB+ECP_SIZE_COOKIE+ECP_SIZE_NONCE)
-#define ECP_MAX_PKT 1412
+#define ECP_MAX_PKT 1432 // 1500 MTU - 60 bytes max IPv4 hdr - 8 bytes UDP hdr
#define ECP_MAX_PLD (ECP_MAX_PKT-ECP_SIZE_PKT_HDR-ECP_SIZE_AEAD_TAG)
#define ECP_MAX_MSG (ECP_MAX_PLD-ECP_SIZE_MTYPE)