summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/rtems/rtems-bsd-shell-netstat.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-09-28 13:23:16 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-09-28 13:23:16 +0200
commitd9fe0617ee0ababd9b7b2d6edf34cb1b6d9a6012 (patch)
treecb3d9ebf28ccf355c11939e05d2f894f9f27d902 /rtemsbsd/rtems/rtems-bsd-shell-netstat.c
parentif_ffec_mcf548x.c: Fix include order (diff)
downloadrtems-libbsd-d9fe0617ee0ababd9b7b2d6edf34cb1b6d9a6012.tar.bz2
Split rtems-bsd-shell-netcmds.c
This improves garbage collection by the linker.
Diffstat (limited to 'rtemsbsd/rtems/rtems-bsd-shell-netstat.c')
-rw-r--r--rtemsbsd/rtems/rtems-bsd-shell-netstat.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/rtemsbsd/rtems/rtems-bsd-shell-netstat.c b/rtemsbsd/rtems/rtems-bsd-shell-netstat.c
new file mode 100644
index 00000000..9cfe7d73
--- /dev/null
+++ b/rtemsbsd/rtems/rtems-bsd-shell-netstat.c
@@ -0,0 +1,20 @@
+/*
+ * COPYRIGHT (c) 1989-2012.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ */
+
+#include <rtems/netcmds-config.h>
+#include <machine/rtems-bsd-commands.h>
+
+rtems_shell_cmd_t rtems_shell_NETSTAT_Command = {
+ "netstat", /* name */
+ "netstat [args]", /* usage */
+ "net", /* topic */
+ rtems_bsd_command_netstat, /* command */
+ NULL, /* alias */
+ NULL /* next */
+};