diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-09-26 09:04:43 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-10-01 12:32:50 +0200 |
commit | a346ebba9c0ccd61072c6a2cfa8025d2882c2db4 (patch) | |
tree | 43b0e6baf9c63c8623aef072e2f4a932176bd96f /cpukit/include/rtems | |
parent | telnetd: Regroup includes (diff) | |
download | rtems-a346ebba9c0ccd61072c6a2cfa8025d2882c2db4.tar.bz2 |
telnetd: Remove CONFIGURE_MAXIMUM_PTYS
Add a rtems_telnetd_config_table::client_maximum member to the Telnet
configuration.
Close #3526.
Close #3528.
Diffstat (limited to 'cpukit/include/rtems')
-rw-r--r-- | cpukit/include/rtems/confdefs.h | 22 | ||||
-rw-r--r-- | cpukit/include/rtems/telnetd.h | 8 |
2 files changed, 12 insertions, 18 deletions
diff --git a/cpukit/include/rtems/confdefs.h b/cpukit/include/rtems/confdefs.h index 763f54bca5..f59e0f7068 100644 --- a/cpukit/include/rtems/confdefs.h +++ b/cpukit/include/rtems/confdefs.h @@ -155,24 +155,6 @@ extern rtems_initialization_tasks_table Initialization_tasks[]; const uint32_t rtems_libio_number_iops = RTEMS_ARRAY_SIZE(rtems_libio_iops); #endif -/** - * This macro specifies the number of PTYs that can be concurrently - * active. - */ -#ifndef CONFIGURE_MAXIMUM_PTYS - #define CONFIGURE_MAXIMUM_PTYS 0 -#endif - -/** - * This variable contains the maximum number of PTYs that can be - * concurrently active. - */ -#ifdef CONFIGURE_INIT - int rtems_telnetd_maximum_ptys = CONFIGURE_MAXIMUM_PTYS; -#else - extern int rtems_telnetd_maximum_ptys; -#endif - #ifdef CONFIGURE_SMP_MAXIMUM_PROCESSORS #warning "CONFIGURE_SMP_MAXIMUM_PROCESSORS has been renamed to CONFIGURE_MAXIMUM_PROCESSORS since RTEMS 5.1" #define CONFIGURE_MAXIMUM_PROCESSORS CONFIGURE_SMP_MAXIMUM_PROCESSORS @@ -3474,6 +3456,10 @@ extern rtems_initialization_tasks_table Initialization_tasks[]; #warning "The CONFIGURE_MAXIMUM_POSIX_SPINLOCKS configuration option is obsolete since RTEMS 5.1" #endif +#ifdef CONFIGURE_MAXIMUM_PTYS + #warning "The CONFIGURE_MAXIMUM_PTYS configuration option is obsolete since RTEMS 5.1" +#endif + #ifdef CONFIGURE_TERMIOS_DISABLED #warning "The CONFIGURE_TERMIOS_DISABLED configuration option is obsolete since RTEMS 5.1" #endif diff --git a/cpukit/include/rtems/telnetd.h b/cpukit/include/rtems/telnetd.h index 19512fbe9c..2339bad8b6 100644 --- a/cpukit/include/rtems/telnetd.h +++ b/cpukit/include/rtems/telnetd.h @@ -85,6 +85,14 @@ typedef struct { * create other tasks for the shell which listen on sockets. */ bool keep_stdio; + + /** + * @brief Maximum number of clients which can connect to the system at a + * time. + * + * Use 0 for the default value. + */ + uint16_t client_maximum; } rtems_telnetd_config_table; /** |