Skip to content

Make the UDP port count configurable, non-zero by default - #6

Open
xinix00 wants to merge 1 commit into
usbarmory:mainfrom
xinix00:udp-ports
Open

Make the UDP port count configurable, non-zero by default#6
xinix00 wants to merge 1 commit into
usbarmory:mainfrom
xinix00:udp-ports

Conversation

@xinix00

@xinix00 xinix00 commented Aug 11, 2026

Copy link
Copy Markdown

LnetoStack.Configure hardcodes MaxActiveUDPPorts: 0, so no UDP socket opens and DNS and SNTP do not work. There is no way to turn it on either: the value is not reachable from LnetoConfig.

lneto has supported UDP for a while (x/xnet's Socket handles "udp"/"udp4"/"udp6", and StackAsync exposes DialUDP and RegisterListenerUDP), so this makes the count a config field like MaxActiveTCPPorts, default 4.

Configure passed MaxActiveUDPPorts to xnet.StackConfig as a hardcoded 0 with
"Unsupported as of yet", so no UDP socket could open and DNS and SNTP did not
work, with no way to turn them on from LnetoConfig.

lneto has supported UDP for a while: x/xnet's Socket handles "udp"/"udp4"/
"udp6" through udp.Conn and udp.PacketConn, and StackAsync exposes DialUDP
and RegisterListenerUDP. Make the count a config field like
MaxActiveTCPPorts, default 4.
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.

3 participants