From 26b58b7e4af27b632a3765249ba8f8a9b024fa08 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 10 Oct 2018 13:12:50 +0200 Subject: telnetd: Add server port to configuration Close #3543. --- cpukit/include/rtems/telnetd.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'cpukit/include/rtems/telnetd.h') diff --git a/cpukit/include/rtems/telnetd.h b/cpukit/include/rtems/telnetd.h index e662874a81..1f8e1c55c3 100644 --- a/cpukit/include/rtems/telnetd.h +++ b/cpukit/include/rtems/telnetd.h @@ -92,6 +92,13 @@ typedef struct { * Use 0 for the default value. */ uint16_t client_maximum; + + /** + * @brief Server port number in host byte order. + * + * Use 0 for the default value. + */ + uint16_t port; } rtems_telnetd_config_table; /** @@ -100,7 +107,7 @@ typedef struct { * @retval RTEMS_SUCCESSFUL Successful operation. * @retval RTEMS_INVALID_ADDRESS The command function in the configuration is * @c NULL. - * @retval RTEMS_RESOURCE_IN_USE The Telnet server was already started. + * @retval RTEMS_RESOURCE_IN_USE The server port is already in use. * @retval RTEMS_NOT_IMPLEMENTED The keep stdio configuration option is true. * @retval RTEMS_UNSATISFIED Not enough resources to start the Telnet server or * task priority in configuration is invalid. -- cgit v1.2.3