From 04674955de2d03ec589c226a9b87902804bad6c4 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 4 Sep 2024 21:04:25 +0200 Subject: network buffer fix --- fw/fe310/eos/net/sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fw/fe310') diff --git a/fw/fe310/eos/net/sock.c b/fw/fe310/eos/net/sock.c index 1db0cd9..c9934e8 100644 --- a/fw/fe310/eos/net/sock.c +++ b/fw/fe310/eos/net/sock.c @@ -118,7 +118,7 @@ static int sock_send(unsigned char sock, unsigned char *msg, uint16_t msg_len, E buffer[1] = addr->port; buffer += sizeof(addr->port); if (msg) { - if (msg_len + EOS_SOCK_SIZE_UDP_HDR > EOS_NET_MTU) return EOS_ERR_SIZE; + if (msg_len + EOS_SOCK_SIZE_UDP_HDR > EOS_NET_SIZE_BUF) return EOS_ERR_SIZE; memcpy(buffer, msg, msg_len); } -- cgit v1.2.3