mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-20 19:41:58 +00:00
test: assess CPQ UDP buffering proposal
This commit is contained in:
1 parent
069ab78c02
commit
10226d8784
10 files changed
+1020
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user