increased I2NP max message size to 32K and check if fragmented message exceeds it

This commit is contained in:
orignal 2014-07-04 12:35:02 -04:00
parent d4ac1391fe
commit 12fbc9cb86
4 changed files with 15 additions and 6 deletions

View file

@ -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;