Changeset 5edcb9e in rtems-libbsd


Ignore:
Timestamp:
Jan 8, 2016, 7:16:58 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
c1e05b9ea378b2971e3d7704779112b4bc4296da, freebsd-9.3, 4a77611a223ea883fb548679b516d326a020d447
Children:
5b93cc8
Parents:
00c8792
git-author:
Sebastian Huber <sebastian.huber@…> (01/08/16 07:16:58)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/26/16 13:20:59)
Message:

media01: Add telnetd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuite/media01/test_main.c

    r00c8792 r5edcb9e  
    11/*
    2  * Copyright (c) 2010-2015 embedded brains GmbH.  All rights reserved.
     2 * Copyright (c) 2010-2016 embedded brains GmbH.  All rights reserved.
    33 *
    44 *  embedded brains GmbH
     
    3838#include <rtems/media.h>
    3939#include <rtems/shell.h>
     40#include <rtems/telnetd.h>
    4041
    4142#define TEST_NAME "LIBBSD MEDIA 1"
     
    109110
    110111static void
     112telnet_shell(char *name, void *arg)
     113{
     114        rtems_shell_env_t env;
     115
     116        memset(&env, 0, sizeof(env));
     117
     118        env.devname = name;
     119        env.taskname = "TLNT";
     120        env.login_check = NULL;
     121        env.forever = false;
     122
     123        rtems_shell_main_loop(&env);
     124}
     125
     126rtems_telnetd_config_table rtems_telnetd_config = {
     127        .command = telnet_shell,
     128        .arg = NULL,
     129        .priority = 0,
     130        .stack_size = 0,
     131        .login_check = NULL,
     132        .keep_stdio = false
     133};
     134
     135static void
    111136test_main(void)
    112137{
     
    116141        rv = rtems_initialize_ftpd();
    117142        assert(rv == 0);
     143
     144        sc = rtems_telnetd_initialize();
     145        assert(sc == RTEMS_SUCCESSFUL);
    118146
    119147        sc = rtems_shell_init("SHLL", 16 * 1024, 1, CONSOLE_DEVICE_NAME,
     
    150178
    151179#define DEFAULT_NETWORK_DHCPCD_ENABLE
     180
     181#define CONFIGURE_MICROSECONDS_PER_TICK 1000
     182
     183#define CONFIGURE_MAXIMUM_DRIVERS 32
    152184
    153185#define CONFIGURE_FILESYSTEM_DOSFS
Note: See TracChangeset for help on using the changeset viewer.