source: rtems-libbsd/rtemsbsd/rtems/rtems-bsd-shell-netcmds.c @ f19c53c

4.11
Last change on this file since f19c53c was 5e02888, checked in by Chris Johns <chrisj@…>, on 06/16/15 at 03:18:38

Add the TCPDUMP command.

  • Property mode set to 100644
File size: 1.9 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-2012.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.com/license/LICENSE.
8 */
9
10#include <rtems/netcmds-config.h>
11#include <machine/rtems-bsd-commands.h>
12
13rtems_shell_cmd_t rtems_shell_IFCONFIG_Command = {
14  "ifconfig",                    /* name */
15  "ifconfig [args]",             /* usage */
16  "net",                         /* topic */
17  rtems_bsd_command_ifconfig,    /* command */
18  NULL,                          /* alias */
19  NULL                           /* next */
20};
21
22rtems_shell_cmd_t rtems_shell_NETSTAT_Command = {
23  "netstat",                     /* name */
24  "netstat [args]",              /* usage */
25  "net",                         /* topic */
26  rtems_bsd_command_netstat,     /* command */
27  NULL,                          /* alias */
28  NULL                           /* next */
29};
30
31rtems_shell_cmd_t rtems_shell_PING_Command = {
32  "ping",                        /* name */
33  "ping [args]",                 /* usage */
34  "net",                         /* topic */
35  rtems_bsd_command_ping,        /* command */
36  NULL,                          /* alias */
37  NULL                           /* next */
38};
39
40rtems_shell_cmd_t rtems_shell_ROUTE_Command = {
41  "route",                       /* name */
42  "route [args]",                /* usage */
43  "net",                         /* topic */
44  rtems_bsd_command_route,       /* command */
45  NULL,                          /* alias */
46  NULL                           /* next */
47};
48
49rtems_shell_cmd_t rtems_shell_TCPDUMP_Command = {
50  "tcpdump",                     /* name */
51  "tcpdump [args]",              /* usage */
52  "net",                         /* topic */
53  rtems_bsd_command_tcpdump,     /* command */
54  NULL,                          /* alias */
55  NULL                           /* next */
56};
Note: See TracBrowser for help on using the repository browser.