mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 22:56:25 +08:00
Add telnetd as service to rc.conf.
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
@@ -154,8 +154,9 @@ extern void rtems_bsd_rc_conf_print_cmd(rtems_bsd_rc_conf* rc_conf,
|
||||
/*
|
||||
* Decls for the handlers.
|
||||
*/
|
||||
void rc_conf_net_init(void* arg); /* Installed by default. */
|
||||
void rc_conf_ftpd_init(void* arg); /* ftpd_enabled="YES" */
|
||||
void rc_conf_net_init(void* arg); /* Installed by default. */
|
||||
void rc_conf_telnetd_init(void* arg); /* telnetd_enabled="YES" */
|
||||
void rc_conf_ftpd_init(void* arg); /* ftpd_enabled="YES" */
|
||||
|
||||
/*
|
||||
* Added services.
|
||||
|
@@ -87,6 +87,11 @@ typedef struct {
|
||||
bool keep_stdio;
|
||||
} rtems_telnetd_config_table;
|
||||
|
||||
/**
|
||||
* @brief Start the Telnet subsystem with the provided configuration.
|
||||
*/
|
||||
rtems_status_code rtems_telnetd_start(const rtems_telnetd_config_table* config);
|
||||
|
||||
/**
|
||||
* @brief Telnet configuration.
|
||||
*
|
||||
|
Reference in New Issue
Block a user