Add telnetd as service to rc.conf.

This commit is contained in:
Chris Johns
2016-07-01 15:49:52 +10:00
parent fc26479566
commit 65c65bb7a3
9 changed files with 296 additions and 42 deletions

View File

@@ -32,6 +32,8 @@
* RTEMS_BSD_CONFIG_NET_PF_UNIX : Packet Filter.
* RTEMS_BSD_CONFIG_NET_IF_LAGG : Link Aggregetion and Failover.
* RTEMS_BSD_CONFIG_NET_IF_VLAN : Virtual LAN.
* RTEMS_BSD_CONFIG_SERVICE_TELNETD : Telnet Protocol (TELNET).
* RTEMS_BSD_CONFIG_TELNETD_STACK_SIZE : Telnet shell task stack size.
* RTEMS_BSD_CONFIG_SERVICE_FTPD : File Transfer Protocol (FTP).
* RTEMS_BSD_CONFIG_BSP_CONFIG : Configure default BSP devices.
* RTEMS_BSD_CONFIG_INIT : Configure the LibBSD support.
@@ -117,6 +119,17 @@ extern "C" {
#define RTEMS_BSD_CFGDECL_FTPD RTEMS_BSD_RC_CONF_SYSINT(rc_conf_ftpd)
#endif /* RTEMS_BSD_CONFIG_SERVICE_FTPD */
/*
* Telnetd
*/
#if defined(RTEMS_BSD_CONFIG_SERVICE_TELNETD)
#if defined(RTEMS_BSD_CONFIG_TELNETD_STACK_SIZE)
#define RTEMS_BSD_CFGDECL_TELNETD_STACK_SIZE \
int rtems_telnetd_stack_size = RTEMS_BSD_CONFIG_TELNETD_STACK_SIZE
#endif /* RTEMS_BSD_CONFIG_TELNETD_STACK_SIZE */
#define RTEMS_BSD_CFGDECL_TELNETD RTEMS_BSD_RC_CONF_SYSINT(rc_conf_telnetd)
#endif /* RTEMS_BSD_CONFIG_SERVICE_TELNETD */
/*
* Configure the system.
*/
@@ -145,6 +158,8 @@ extern "C" {
/*
* Create the services.
*/
RTEMS_BSD_CFGDECL_TELNETD;
RTEMS_BSD_CFGDECL_TELNETD_STACK_SIZE;
RTEMS_BSD_CFGDECL_FTPD;
#endif /* RTEMS_BSD_CONFIG_INIT */