Skip to content

Document NET_CMD_OPEN_UDP_LOCAL ($0A) and status 89 - #37

Draft
JC-000 wants to merge 4 commits into
GideonZ:masterfrom
JC-000:uci-open-udp-local
Draft

JC-000 wants to merge 4 commits into
GideonZ:masterfrom
JC-000:uci-open-udp-local

Conversation

@JC-000

@JC-000 JC-000 commented Oct 20, 2026

Copy link
Copy Markdown

Draft: it depends on the firmware PR GideonZ/1541ultimate#1016, which is itself a draft waiting for a go-ahead in GideonZ/1541ultimate#962.

Documents the new network target command from that PR, for GideonZ/1541ultimate#962.

  • A new section NET_CMD_OPEN_UDP_LOCAL (0x0A) in uci/network_target.rst, after NET_CMD_CLOSE_SOCKET and before NET_CMD_READ_SOCKET: format, parameters, the 3-byte reply (handle and bound local port), statuses (81, 82, 84, 85, 86, 89, 11), the resolve-before-bind order, what keeps a port in use, and the support probe (remote port 0: 82 = supported, 21 = not).
  • Status 89,PORT IN USE, with the note (as for 87 and 88 in Document UCI network command NET_CMD_GET_RANDOM ($20) #35) that the number means something else in other targets.

Only uci/network_target.rst changes (52 added lines, LF line endings as in the file; based on upstream master 2da134b). #35 appends GET_RANDOM at the end of the same file; this section is placed earlier, so the two do not overlap.

AI use

The text was written with Claude Sonnet 5.5 in Claude Code and checked against the firmware by a separate Claude Opus 5.5 session. I have read and can explain every line.

cc @GideonZ @barryw

🤖 Generated with Claude Code

JC-000 and others added 3 commits October 20, 2026 06:18
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…service ports are in use

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A socket opened to 0.0.0.0 accepts datagrams from any sender whose source
port equals the remote port, so the paragraph that says it only receives
from the remote host is corrected. Also note that broadcast needs no socket
option. This describes current firmware behaviour.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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