Repository navigation
Documentation/netutils: add comprehensive guide for telnetd - #20586
Merged
Merged
Conversation
Provide a complete documentation guide for the telnetd (Telnet daemon) network utility in Documentation/applications/netutils/telnetd/index.rst, replacing the previous 31-line placeholder stub. Includes: - Protocol architecture overview (modular split between apps/netutils/telnetd daemon and drivers/net/telnet.c character driver factory, /dev/telnet%d session wrapping, standard I/O redirection via dup2, child task execution) - RFC 854 / RFC 855 / RFC 1073 (NAWS) protocol compliance and IAC state machine handling - Transmit line-ending formatting (CR LF / CR NUL) and transparent receive passthrough to shell line discipline - Security considerations regarding unencrypted plaintext transmission, network isolation, and encrypted alternatives (Dropbear SSH) - Comprehensive configuration options tables for daemon, driver, and NSH Telnet console (apps/nshlib) - STDIO buffering and packet efficiency guidelines (CONFIG_STDIO_LINEBUFFER, CONFIG_STDIO_BUFFER_SIZE) - Public C API documentation for struct telnetd_config_s and telnetd_daemon() - Complete, runnable C application example demonstrating standalone custom shell bringup, background listener task creation, and connection lifecycle for flat/protected builds (t_entry) and kernel builds (t_path) - Client connection walkthroughs for Linux, macOS (including Homebrew installation note and netcat alternative), and Windows (PuTTY, telnet) - Troubleshooting and best practices table for buffer sizing, connection failures, and escape sequences Signed-off-by: Swatantra Yadav <[email protected]>
acassis
approved these changes
Oct 11, 2026
Contributor
|
Thank you @Swatantra-66 |
xiaoxiang781216
approved these changes
Oct 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Addresses #11081.
This PR replaces the 31-line placeholder stub in
Documentation/applications/netutils/telnetd/index.rstwith a comprehensive, authoritative documentation guide for thetelnetd(Telnet daemon) network utility.Part of the ongoing
netutilsdocumentation enhancement series (alongside #20472, #20493, #20513, #20514, and #20578).Contents Added:
apps/netutils/telnetd(user-space daemon) anddrivers/net/telnet.c(kernel character driver factory)./dev/telnet%dcharacter driver allocation, IAC command state machine, anddup2()STDIO virtualization.CONFIG_TELNET_RXBUFFER_SIZE,CONFIG_TELNET_TXBUFFER_SIZE,CONFIG_TELNET_MAXLCLIENTS), and NSH Telnet console (CONFIG_NSH_TELNET, ports, daemon/client stack & priorities).CONFIG_STDIO_LINEBUFFER,CONFIG_STDIO_BUFFER_SIZE >= 64).struct telnetd_config_sandtelnetd_daemon().t_entry) and kernel (t_path) builds.Impact
Testing
tools/checkpatch.sh -g HEAD(0 errors, 0 warnings).