[PATCH 0/6] Allocate resources at Telnet server start

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Oct 10 12:12:27 UTC 2018


This patch set changes the Telnet server implementation to allocate all
resources (except the socket returned by accept()) at the service start
via rtems_telnetd_start().

You can now also start the Telnet server on non-standard ports.

I tested it using libbsd.

Sebastian Huber (6):
  telnetd: Simplify task spawn function
  telnetd: Rename shell_args to telnetd_session
  telnetd: Create server socket at start
  telnetd: Allocate the server context
  telnetd: Create sessions at start
  telnetd: Add server port to configuration

 cpukit/include/rtems/pty.h                  |  11 +-
 cpukit/include/rtems/telnetd.h              |   9 +-
 cpukit/telnetd/pty.c                        |  33 +-
 cpukit/telnetd/telnetd.c                    | 634 ++++++++++++++--------------
 testsuites/libtests/telnetd01/init.c        |   6 +-
 testsuites/libtests/telnetd01/telnetd01.scn |   7 +-
 6 files changed, 360 insertions(+), 340 deletions(-)

-- 
2.16.4



More information about the devel mailing list