source: rtems/cpukit/telnetd/icmds.c @ 7ed1e747

4.104.114.84.95
Last change on this file since 7ed1e747 was bd520203, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 9, 2001 at 10:06:51 PM

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.
  • Property mode set to 100644
File size: 1.6 KB
Line 
1#include <rtems/shell.h>
2#include <rtems/rtems_bsdnet.h>
3/*+++++++++++++++++++++++++++++++++++++++++++++*/
4int main_inet(int argc,char * argv[]) {
5 rtems_bsdnet_show_inet_routes ();
6 return 0;
7}
8/*+++++++++++++++++++++++++++++++++++++++++++++*/
9int main_mbuf(int argc,char * argv[]) {
10 rtems_bsdnet_show_mbuf_stats ();
11 return 0;
12}
13/*+++++++++++++++++++++++++++++++++++++++++++++*/
14int main_if(int argc,char * argv[]) {
15 rtems_bsdnet_show_if_stats ();
16 return 0;
17}
18/*+++++++++++++++++++++++++++++++++++++++++++++*/
19int main_ip(int argc,char * argv[]) {
20 rtems_bsdnet_show_ip_stats ();
21 return 0;
22}
23/*+++++++++++++++++++++++++++++++++++++++++++++*/
24int main_icmp(int argc,char * argv[]) {
25 rtems_bsdnet_show_icmp_stats ();
26 return 0;
27}
28/*+++++++++++++++++++++++++++++++++++++++++++++*/
29int main_tcp(int argc,char * argv[]) {
30 rtems_bsdnet_show_tcp_stats ();
31 return 0;
32}
33/*+++++++++++++++++++++++++++++++++++++++++++++*/
34int main_udp(int argc,char * argv[]) {
35 rtems_bsdnet_show_udp_stats ();
36 return 0;
37}
38/*+++++++++++++++++++++++++++++++++++++++++++++*/
39void register_icmds(void) {
40 shell_add_cmd("inet"    ,"net","inet routes"               ,main_inet);   
41 shell_add_cmd("mbuf"    ,"net","mbuf stats"                ,main_mbuf);   
42 shell_add_cmd("if"      ,"net","if   stats"                ,main_if  );   
43 shell_add_cmd("ip"      ,"net","ip   stats"                ,main_ip  );   
44 shell_add_cmd("icmp"    ,"net","icmp stats"                ,main_icmp);   
45 shell_add_cmd("tcp"     ,"net","tcp  stats"                ,main_tcp );   
46 shell_add_cmd("udp"     ,"net","udp  stats"                ,main_udp );   
47}
48
Note: See TracBrowser for help on using the repository browser.