mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
increased I2NP max message size to 32K and check if fragmented message exceeds it
This commit is contained in:
parent
d4ac1391fe
commit
12fbc9cb86
4 changed files with 15 additions and 6 deletions
|
@ -100,10 +100,10 @@ namespace tunnel
|
|||
class InboundTunnel;
|
||||
}
|
||||
|
||||
const int NTCP_MAX_MESSAGE_SIZE = 16384;
|
||||
const size_t I2NP_MAX_MESSAGE_SIZE = 32768;
|
||||
struct I2NPMessage
|
||||
{
|
||||
uint8_t buf[NTCP_MAX_MESSAGE_SIZE];
|
||||
uint8_t buf[I2NP_MAX_MESSAGE_SIZE];
|
||||
size_t len, offset;
|
||||
i2p::tunnel::InboundTunnel * from;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue