source: rtems/cpukit/telnetd/icmds.c @ a29d2e7

4.104.114.84.95
Last change on this file since a29d2e7 was 73b5bd5d, checked in by Ralf Corsepius <ralf.corsepius@…>, on Apr 15, 2004 at 1:33:58 PM

Remove stray white spaces.

  • 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}
Note: See TracBrowser for help on using the repository browser.