Repository navigation
Documentation/netutils: add comprehensive guide for ftpd - #20514
Conversation
hartmannathan
left a comment
There was a problem hiding this comment.
Well written doc! Thank you for helping to improve NuttX documentation!
|
Hmm, the CI complains there is unexpected indentation on line 42, but I don't see an indentation problem there. Does anyone know why it complains? |
I don't see it |
Good point. @Swatantra-66 if you are using AI to write the documentation (because its very well designed and formatted), please indicate it using: Assisted-by: AI Vendor and Model |
Provide a complete documentation guide for the ftpd (FTP server) network utility in Documentation/applications/netutils/ftpd/index.rst, replacing the previous 6-line placeholder stub. Includes: - Protocol architecture overview (control/data connection separation, multi-session worker pthreads, VFS mapping) - Security considerations regarding unencrypted plaintext FTP credentials, mandatory credential hardening, home directory isolation, and encrypted password authentication - Comprehensive supported RFC 959 / RFC 2428 / RFC 3659 FTP commands reference table - Configuration options table and networking prerequisites (CONFIG_NETUTILS_FTPD, worker stack size, buffer sizes) - NSH terminal usage (ftpd -4 / -6, ftpd_stop) with address-family flag requirements and configured account placeholders - External client connection walkthroughs (FTP CLI, cURL) using configured account and anonymous workflows - Public C API reference for types, account flags, and lifecycle functions (ftpd_open, ftpd_adduser, ftpd_session, ftpd_close) - Complete, runnable C application example demonstrating multi-user server setup, signal-driven termination (SIGINT/SIGTERM) with atomic sig_atomic_t state, POSIX kill stop routine, and credential placeholders - Embedded design and resource tuning guidelines (stack sizing, flash/SD card I/O buffering, and NAT passive mode) Addresses apache#11081 Assisted-by: Google Gemini Signed-off-by: Swatantra Yadav <[email protected]>
0cfe3f6
91c441d to
0cfe3f6
Compare
|
@hartmannathan @acassis Thank you for the reviews! Regarding the line 42 indentation error: in Sphinx / Docutils, when sub-bullets are nested under an enumerated list ( I have flattened those sub-items into clean inline text and verified locally with Docutils (0 warnings, 0 errors). I have also added the requested |
Summary
Provide a comprehensive documentation guide for the
ftpd(FTP server) network utility inDocumentation/applications/netutils/ftpd/index.rst, replacing the previous 6-line placeholder stub.Addresses #11081.
Key Additions:
CONFIG_FTPD_WORKERSTACKSIZE), control vs. data stream separation, and POSIX VFS mapping.FTPD_ACCOUNTFLAG_GUEST), mandatory credential hardening advice, and encrypted password authentication (CONFIG_FTPD_LOGIN_PASSWD).EPRT,EPSV), and RFC 3659 metadata extensions (SIZE,MDTM).CONFIG_NETUTILS_FTPD, worker stack sizes, command buffer lengths, data buffer transfer sizing, port options).ftpd -4/ftpd -6(address-family options) andftpd_stopNSH commands with account placeholders.ftpandcurlexamples that avoid embedding plaintext passwords in command arguments (prompting securely to avoid shell history and process table exposure).ftpd_open(),ftpd_adduser(),ftpd_session(), andftpd_close().sig_atomic_tsignal handling (SIGINT/SIGTERM) and companion POSIXkillstop routines.Impact
-4/-6CLI flags, account management, and thread-safe session termination.Testing
git diff --check).apps/examples/ftpd/ftpd_main.c.apps/include/netutils/ftpd.handapps/netutils/ftpd/ftpd.c.