Skip to content

network: Drop non unicast UDP packets#5208

Open
bkerler wants to merge 2 commits intoprusa3d:masterfrom
bkerler:drop_non_unicast
Open

network: Drop non unicast UDP packets#5208
bkerler wants to merge 2 commits intoprusa3d:masterfrom
bkerler:drop_non_unicast

Conversation

@bkerler
Copy link
Copy Markdown

@bkerler bkerler commented Mar 28, 2026

This PR solves issue #5115
This change addresses upload stalls and 408 Request Timeout failures caused by large fragmented UDP broadcast/multicast traffic overwhelming the networking stack.

The issue report showed that the printer was receiving repeated large OpenWrt usteer UDP broadcasts, attempting IPv4 fragment reassembly for them, and eventually emitting ICMP "fragment reassembly time exceeded" replies. While that reassembly state was active, PrusaLink / PrusaConnect traffic could stall badly enough to break uploads.

Instead of increasing the RX pool size globally as suggested in PR #5185, this PR drops fragmented non-unicast IPv4 UDP traffic before it reaches lwIP reassembly:

Ethernet path drops it before pbuf allocation
ESP/Wi-Fi path drops it before handing the packet to lwIP
This keeps normal unicast traffic unchanged and avoids a large always-on RAM increase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant