summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2024-09-04 21:04:25 +0200
committerUros Majstorovic <majstor@majstor.org>2024-09-04 21:04:25 +0200
commit04674955de2d03ec589c226a9b87902804bad6c4 (patch)
treec89627d404b0825ace4df64f9880a76357b84ac2
parent16d2bc9cc097da10dcadd2fb7425e20da4834a3a (diff)
network buffer fix
-rw-r--r--fw/fe310/eos/net/sock.c2
1 files changed, 1 insertions, 1 deletions
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);
}