Changeset bc28ed2 in network-demos


Ignore:
Timestamp:
Apr 14, 2009, 10:52:03 AM (10 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.11, master, network-demos-4-10-branch
Children:
ab15736
Parents:
83dbe37
Message:

Updated telnet demon initialization

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r83dbe37 rbc28ed2  
     12009-04-14      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * telnetd/init.c: Updated telnet demon initialization.
     4
    152009-02-10      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • telnetd/init.c

    r83dbe37 rbc28ed2  
    187187#define SHELL_ENTRY rtemsShell
    188188
     189/*
     190 *  Telnet demon configuration
     191 */
     192rtems_telnetd_config_table rtems_telnetd_config = {
     193  .command = SHELL_ENTRY,
     194  .arg = NULL,
     195  .priority = 1, /* We feel important today */
     196  .stack_size = 20 * RTEMS_MINIMUM_STACK_SIZE, /* Shell needs a large stack */
     197  .login_check = NULL, /* Shell asks for user and password */
     198  .keep_stdio = false
     199};
     200
    189201#endif
    190202
     
    211223    remain_on_console = true;
    212224  #endif
     225
     226  rtems_telnetd_config.keep_stdio = remain_on_console;
    213227 
    214   rtems_telnetd_initialize(
    215     SHELL_ENTRY,                    /* "shell" function */
    216     NULL,                           /* no context necessary for echoShell */
    217     remain_on_console,              /* true == remain on console */
    218                                     /* false == listen on sockets */
    219     RTEMS_MINIMUM_STACK_SIZE * 20,  /* shell needs a large stack */
    220     1,                              /* priority .. we feel important today */
    221     false                        /* false = telnetd does NOT ask for password */
    222                                  /* true = telnetd asks for password */
    223                                  /* RTEMS Shell always asks for user/passwd */
    224   );
     228  rtems_telnetd_initialize();
    225229
    226230  if ( !remain_on_console )
Note: See TracChangeset for help on using the changeset viewer.