Skip to content

Streams: resolve a unicast destination on the wired port - #993

Merged
chrisgleissner merged 10 commits into
GideonZ:masterfrom
chrisgleissner:fix/stream-wired-arp
Oct 17, 2026
Merged

chrisgleissner merged 10 commits into
GideonZ:masterfrom
chrisgleissner:fix/stream-wired-arp

Conversation

@chrisgleissner

@chrisgleissner chrisgleissner commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #991.

When Ethernet and WiFi share a subnet, the FPGA stream's UDP primer can resolve its receiver through WiFi. Bind the existing send_udp_packet socket to Ethernet with lwIP's SO_BINDTODEVICE.

This fixes interface selection at the streaming callers and preserves master's UDP primer, ARP cache, retries and startup timeout. No lwIP changes or additional retry traffic.

Validation:

  • U64: 141/141 routing/lifecycle checks, including video/audio/debug, unicast/multicast, REST/DMA, Ethernet/WiFi controls, debug modes and menus. Existing stream suites pass.
  • Packet capture confirms cold/warm ARP behavior and normal timer retries.
  • Official C64Stream 1.2.0, OBS 32.2.0: fresh rendered frames, SID audio and stop checks. Controlled WiFi-profile tests match master, with zero OBS audio restart warnings.
  • U64, U64-II, U2, U2+ and U2+L applications compile. Other targets have build coverage only; U2+L debug delivery needs a debug-capable core.

Detailed results, build/packaging limits and captures.

Live U64 video and SID audio in OBS

Unicast frame · Multicast frame

@chrisgleissner chrisgleissner added bug Existing behavior is incorrect, broken, or regressed; includes supported documentation defects. test Test suites, harnesses, coverage, and infrastructure; not tests supplied to reproduce firmware bugs. network Networking and remote services: REST, Socket DMA, FTP, Telnet, and online access. labels Oct 14, 2026
Bypass the local size hook for upstream's tracked software/test/iecdrive/testdrive.cc source file (312 KiB).
@chrisgleissner
chrisgleissner marked this pull request as ready for review October 17, 2026 17:16
Exercise video, audio and debug to unicast and multicast receivers across
all REST/DMA and wired/WiFi start-stop pairs. Check retargeting, defaults,
DMA timers, DNS and broadcast, stream interactions, invalid requests,
all debug modes and menu cancellation/start/stop using existing helpers.
Keep drains bounded and restore stream configuration during cleanup.

Validated 141/141 checks on U64 firmware 69f3c7c, including the latest
upstream master merge. U2+L runs the same merged build and passes health
checks; its cached FPGA has no debug-stream block.
Keep the existing UDP primer and lwIP cache and retry behavior. Bind its socket with SO_BINDTODEVICE so address resolution uses the same interface as FPGA stream output.
@chrisgleissner
chrisgleissner merged commit 7ec3bff into GideonZ:master Oct 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Existing behavior is incorrect, broken, or regressed; includes supported documentation defects. network Networking and remote services: REST, Socket DMA, FTP, Telnet, and online access. test Test suites, harnesses, coverage, and infrastructure; not tests supplied to reproduce firmware bugs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unicast stream start returns 404 Network Host Resolve Error on a unit with Ethernet and WiFi on one subnet

1 participant