Changeset bd520203 in rtems


Ignore:
Timestamp:
Aug 9, 2001, 10:06:51 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
70d689a
Parents:
4f088ae
Message:

2001-08-09 Fernando-Ruiz Casas <correo@…>

  • Makefile.am, configure.in, rtems_servers/Makefile.am, rtems_servers/telnetd.c, rtems_servers/telnetd.h, rtems_telnetd/Makefile.am, rtems_telnetd/README, rtems_telnetd/icmds.c, rtems_telnetd/pty.c, rtems_telnetd/pty.h, rtems_telnetd/telnetd.c, rtems_telnetd/telnetd.h, wrapup/Makefile.am:
    • pty and telnetd have a new subdir rtems_telnetd to avoid the side effect when ftpd change.
    • the tcp/ip stats have been implemented into icmds.c and started when telnetd daemon is started.
  • rtems_servers/telnetd.c, rtems_servers/telnetd.h: Removed.
  • rtems_telnetd: New directory.
  • rtems_telnetd/Makefile.am, rtems_telnetd/README, rtems_telnetd/icmds.c, rtems_telnetd/pty.c, rtems_telnetd/pty.h, rtems_telnetd/telnetd.c, rtems_telnetd/telnetd.h: New files.
Files:
13 added
1 deleted
12 edited
1 moved

Legend:

Unmodified
Added
Removed
  • c/src/exec/libnetworking/ChangeLog

    r4f088ae rbd520203  
     12001-08-09      Fernando-Ruiz Casas <correo@fernando-ruiz.com>
     2
     3        * Makefile.am, configure.in, rtems_servers/Makefile.am,
     4        rtems_servers/telnetd.c, rtems_servers/telnetd.h,
     5        rtems_telnetd/Makefile.am, rtems_telnetd/README, rtems_telnetd/icmds.c,
     6        rtems_telnetd/pty.c, rtems_telnetd/pty.h, rtems_telnetd/telnetd.c,
     7        rtems_telnetd/telnetd.h, wrapup/Makefile.am:
     8          - pty and telnetd have a new subdir rtems_telnetd to avoid
     9            the side effect when ftpd change.
     10          - the tcp/ip stats have been implemented into icmds.c and
     11            started when telnetd daemon is started.
     12        * rtems_servers/telnetd.c, rtems_servers/telnetd.h: Removed.
     13        * rtems_telnetd: New directory.
     14        * rtems_telnetd/Makefile.am, rtems_telnetd/README,
     15        rtems_telnetd/icmds.c, rtems_telnetd/pty.c, rtems_telnetd/pty.h,
     16        rtems_telnetd/telnetd.c, rtems_telnetd/telnetd.h: New files.
     17
    1182001-05-26      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    219
  • c/src/exec/libnetworking/Makefile.am

    r4f088ae rbd520203  
    77
    88SUBDIRS = arpa kern machine sys vm lib libc net netinet nfs rtems \
    9     rtems_servers pppd modem rtems_webserver wrapup
     9    rtems_servers pppd modem rtems_telnetd rtems_webserver wrapup
    1010
    1111include_HEADERS = \
  • c/src/exec/libnetworking/wrapup/Makefile.am

    r4f088ae rbd520203  
    99endif
    1010
    11 NET_O_PIECES = kern lib libc net netinet nfs rtems rtems_servers pppd modem \
     11NET_O_PIECES = kern lib libc net netinet nfs rtems rtems_servers rtems_telnetd pppd modem \
    1212    $(POSIX_PIECES)
    1313OBJS = $(foreach piece, $(NET_O_PIECES), ../$(piece)/$(ARCH)/*.o)
  • c/src/libnetworking/ChangeLog

    r4f088ae rbd520203  
     12001-08-09      Fernando-Ruiz Casas <correo@fernando-ruiz.com>
     2
     3        * Makefile.am, configure.in, rtems_servers/Makefile.am,
     4        rtems_servers/telnetd.c, rtems_servers/telnetd.h,
     5        rtems_telnetd/Makefile.am, rtems_telnetd/README, rtems_telnetd/icmds.c,
     6        rtems_telnetd/pty.c, rtems_telnetd/pty.h, rtems_telnetd/telnetd.c,
     7        rtems_telnetd/telnetd.h, wrapup/Makefile.am:
     8          - pty and telnetd have a new subdir rtems_telnetd to avoid
     9            the side effect when ftpd change.
     10          - the tcp/ip stats have been implemented into icmds.c and
     11            started when telnetd daemon is started.
     12        * rtems_servers/telnetd.c, rtems_servers/telnetd.h: Removed.
     13        * rtems_telnetd: New directory.
     14        * rtems_telnetd/Makefile.am, rtems_telnetd/README,
     15        rtems_telnetd/icmds.c, rtems_telnetd/pty.c, rtems_telnetd/pty.h,
     16        rtems_telnetd/telnetd.c, rtems_telnetd/telnetd.h: New files.
     17
    1182001-05-26      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    219
  • c/src/libnetworking/Makefile.am

    r4f088ae rbd520203  
    77
    88SUBDIRS = arpa kern machine sys vm lib libc net netinet nfs rtems \
    9     rtems_servers pppd modem rtems_webserver wrapup
     9    rtems_servers pppd modem rtems_telnetd rtems_webserver wrapup
    1010
    1111include_HEADERS = \
  • c/src/libnetworking/configure.in

    r4f088ae rbd520203  
    5050rtems/Makefile
    5151rtems_servers/Makefile
     52rtems_telnetd/Makefile
    5253rtems_webserver/Makefile
    5354wrapup/Makefile
  • c/src/libnetworking/rtems_servers/Makefile.am

    r4f088ae rbd520203  
    3434include_HEADERS = ftpd.h
    3535
    36 include_rtems_HEADERS = telnetd.h
     36include_rtems_HEADERS =
    3737
    3838PREINSTALL_FILES += $(PROJECT_INCLUDE) \
  • c/src/libnetworking/rtems_telnetd/telnetd.c

    r4f088ae rbd520203  
     1/***********************************************************/
    12/*
    2  *  $Id$
     3 *
     4 *  The telnet DAEMON
     5 *
     6 *  Author: 17,may 2001
     7 *
     8 *   WORK: fernando.ruiz@ctv.es
     9 *   HOME: correo@fernando-ruiz.com
     10 *
     11 * After start the net you can start this daemon.
     12 * It uses the previously inited pseudo-terminales (pty.c)
     13 * getting a new terminal with getpty(). This function
     14 * gives a terminal name passing a opened socket like parameter.
     15 *
     16 * With register_telnetd() you add a new command in the shell to start
     17 * this daemon interactively. (Login in /dev/console of course)
     18 *
     19 * Sorry but OOB is not still implemented. (This is the first version)
    320 */
     21#ifdef HAVE_CONFIG_H
     22#include "config.h"
     23#endif
    424
    525#include <rtems.h>
    626#include <rtems/error.h>
     27#include <rtems/pty.h>
    728#include <rtems/shell.h>
    829#include <rtems/telnetd.h>
     
    2647        int size_adr;
    2748        if ((des_socket=socket(PF_INET,SOCK_STREAM,0))<0) {
    28                 perror("socket");
     49                perror("telnetd:socket");
    2950                rtems_task_delete(RTEMS_SELF);
    3051        };
     
    3556        size_adr=sizeof(srv);
    3657        if ((bind(des_socket,(struct sockaddr *)&srv,size_adr))<0) {
    37                 perror("bind");
     58                perror("telnetd:bind");
    3859                close(des_socket);
    3960                rtems_task_delete(RTEMS_SELF);
    4061        };
    4162        if ((listen(des_socket,5))<0) {
    42                 perror("listen");
     63                perror("telnetd:listen");
    4364                close(des_socket);
    4465                rtems_task_delete(RTEMS_SELF);
     
    4768          acp_socket=accept(des_socket,(struct sockaddr*)&srv,&size_adr);
    4869          if (acp_socket<0) {
    49                 perror("accept");
     70                perror("telnetd:accept");
    5071                break;
    5172          };
    52           if (devname = get_pty(acp_socket) ) {
     73          if ((devname = get_pty(acp_socket)) ) {
    5374           shell_init(&devname[5],
    5475                      telnetd_stack_size,
     
    6485/***********************************************************/
    6586int rtems_initialize_telnetd(void) {
     87        void register_icmds(void);
    6688        rtems_status_code sc;
     89       
     90        register_icmds(); /* stats for tcp/ip */
     91       
    6792        if (telnetd_task_id         ) return RTEMS_RESOURCE_IN_USE;
    6893        if (telnetd_stack_size<=0   ) telnetd_stack_size   =16384;
    6994        if (telnetd_task_priority<=2) telnetd_task_priority=100;
    70         sc=rtems_task_create(new_rtems_name("TLND"),
     95        sc=rtems_task_create(new_rtems_name("tlnd"),
    7196                             100,RTEMS_MINIMUM_STACK_SIZE,     
    7297                             RTEMS_DEFAULT_MODES,
  • c/src/libnetworking/wrapup/Makefile.am

    r4f088ae rbd520203  
    99endif
    1010
    11 NET_O_PIECES = kern lib libc net netinet nfs rtems rtems_servers pppd modem \
     11NET_O_PIECES = kern lib libc net netinet nfs rtems rtems_servers rtems_telnetd pppd modem \
    1212    $(POSIX_PIECES)
    1313OBJS = $(foreach piece, $(NET_O_PIECES), ../$(piece)/$(ARCH)/*.o)
  • cpukit/ftpd/Makefile.am

    r4f088ae rbd520203  
    3434include_HEADERS = ftpd.h
    3535
    36 include_rtems_HEADERS = telnetd.h
     36include_rtems_HEADERS =
    3737
    3838PREINSTALL_FILES += $(PROJECT_INCLUDE) \
  • cpukit/libnetworking/ChangeLog

    r4f088ae rbd520203  
     12001-08-09      Fernando-Ruiz Casas <correo@fernando-ruiz.com>
     2
     3        * Makefile.am, configure.in, rtems_servers/Makefile.am,
     4        rtems_servers/telnetd.c, rtems_servers/telnetd.h,
     5        rtems_telnetd/Makefile.am, rtems_telnetd/README, rtems_telnetd/icmds.c,
     6        rtems_telnetd/pty.c, rtems_telnetd/pty.h, rtems_telnetd/telnetd.c,
     7        rtems_telnetd/telnetd.h, wrapup/Makefile.am:
     8          - pty and telnetd have a new subdir rtems_telnetd to avoid
     9            the side effect when ftpd change.
     10          - the tcp/ip stats have been implemented into icmds.c and
     11            started when telnetd daemon is started.
     12        * rtems_servers/telnetd.c, rtems_servers/telnetd.h: Removed.
     13        * rtems_telnetd: New directory.
     14        * rtems_telnetd/Makefile.am, rtems_telnetd/README,
     15        rtems_telnetd/icmds.c, rtems_telnetd/pty.c, rtems_telnetd/pty.h,
     16        rtems_telnetd/telnetd.c, rtems_telnetd/telnetd.h: New files.
     17
    1182001-05-26      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    219
  • cpukit/libnetworking/Makefile.am

    r4f088ae rbd520203  
    77
    88SUBDIRS = arpa kern machine sys vm lib libc net netinet nfs rtems \
    9     rtems_servers pppd modem rtems_webserver wrapup
     9    rtems_servers pppd modem rtems_telnetd rtems_webserver wrapup
    1010
    1111include_HEADERS = \
  • cpukit/libnetworking/wrapup/Makefile.am

    r4f088ae rbd520203  
    99endif
    1010
    11 NET_O_PIECES = kern lib libc net netinet nfs rtems rtems_servers pppd modem \
     11NET_O_PIECES = kern lib libc net netinet nfs rtems rtems_servers rtems_telnetd pppd modem \
    1212    $(POSIX_PIECES)
    1313OBJS = $(foreach piece, $(NET_O_PIECES), ../$(piece)/$(ARCH)/*.o)
Note: See TracChangeset for help on using the changeset viewer.