summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/telnetd.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-10-10 13:12:50 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-10-11 09:08:10 +0200
commit26b58b7e4af27b632a3765249ba8f8a9b024fa08 (patch)
tree51eab844c2a4fd20338f9f95d9d8fdde40f6eb6f /cpukit/include/rtems/telnetd.h
parenttelnetd: Create sessions at start (diff)
downloadrtems-26b58b7e4af27b632a3765249ba8f8a9b024fa08.tar.bz2
telnetd: Add server port to configuration
Close #3543.
Diffstat (limited to 'cpukit/include/rtems/telnetd.h')
-rw-r--r--cpukit/include/rtems/telnetd.h9
1 files changed, 8 insertions, 1 deletions
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.