test: assess CPQ UDP buffering proposal

This commit is contained in:
Sergio R. Caprile committed 2026-11-19 16:57:20 -03:00
1 parent 069ab78c02
commit 10226d8784
10 files changed
+1020

No files matched your search

+2
View File
@@ -10901,6 +10901,8 @@ static bool rx_udp(struct mg_tcpip_if *ifp, struct pkt *pkt) {
struct connstate *s;
uint8_t *l2addr;
if (c == NULL) return false; // No UDP listener on this port
// BSD socket has an unread datagram: drop this one to keep boundaries
if (c->is_bsd && c->recv.len > 0) return true;
s = (struct connstate *) (c + 1);
c->rem.port = pkt->udp->sport;
#if MG_ENABLE_IPV6