OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [libnetworking/] [rtems_telnetd/] [icmds.c] - Blame information for rev 1026

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
#include <rtems/shell.h>
2
#include <rtems/rtems_bsdnet.h>
3
/*+++++++++++++++++++++++++++++++++++++++++++++*/
4
int main_inet(int argc,char * argv[]) {
5
 rtems_bsdnet_show_inet_routes ();
6
 return 0;
7
}
8
/*+++++++++++++++++++++++++++++++++++++++++++++*/
9
int main_mbuf(int argc,char * argv[]) {
10
 rtems_bsdnet_show_mbuf_stats ();
11
 return 0;
12
}
13
/*+++++++++++++++++++++++++++++++++++++++++++++*/
14
int main_if(int argc,char * argv[]) {
15
 rtems_bsdnet_show_if_stats ();
16
 return 0;
17
}
18
/*+++++++++++++++++++++++++++++++++++++++++++++*/
19
int main_ip(int argc,char * argv[]) {
20
 rtems_bsdnet_show_ip_stats ();
21
 return 0;
22
}
23
/*+++++++++++++++++++++++++++++++++++++++++++++*/
24
int main_icmp(int argc,char * argv[]) {
25
 rtems_bsdnet_show_icmp_stats ();
26
 return 0;
27
}
28
/*+++++++++++++++++++++++++++++++++++++++++++++*/
29
int main_tcp(int argc,char * argv[]) {
30
 rtems_bsdnet_show_tcp_stats ();
31
 return 0;
32
}
33
/*+++++++++++++++++++++++++++++++++++++++++++++*/
34
int main_udp(int argc,char * argv[]) {
35
 rtems_bsdnet_show_udp_stats ();
36
 return 0;
37
}
38
/*+++++++++++++++++++++++++++++++++++++++++++++*/
39
void 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
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.