[rtems-libbsd commit] pfctl: Add rtems_bsd_command_pfctl.
Sebastian Huber
sebh at rtems.org
Wed Aug 3 12:44:14 UTC 2016
Module: rtems-libbsd
Branch: 4.11
Commit: b0eda365d2592591d74fe446e9b9bcd37ec72512
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=b0eda365d2592591d74fe446e9b9bcd37ec72512
Author: Christian Mauderer <Christian.Mauderer at embedded-brains.de>
Date: Fri Jul 22 14:49:49 2016 +0200
pfctl: Add rtems_bsd_command_pfctl.
---
rtemsbsd/include/machine/rtems-bsd-commands.h | 2 ++
rtemsbsd/include/rtems/netcmds-config.h | 2 ++
rtemsbsd/rtems/rtems-bsd-shell-netcmds.c | 9 +++++++++
3 files changed, 13 insertions(+)
diff --git a/rtemsbsd/include/machine/rtems-bsd-commands.h b/rtemsbsd/include/machine/rtems-bsd-commands.h
index df25178..01dabd5 100644
--- a/rtemsbsd/include/machine/rtems-bsd-commands.h
+++ b/rtemsbsd/include/machine/rtems-bsd-commands.h
@@ -50,6 +50,8 @@ int rtems_bsd_command_ifconfig(int argc, char **argv);
int rtems_bsd_command_netstat(int argc, char **argv);
+int rtems_bsd_command_pfctl(int argc, char **argv);
+
int rtems_bsd_command_ping(int argc, char **argv);
int rtems_bsd_command_ping6(int argc, char **argv);
diff --git a/rtemsbsd/include/rtems/netcmds-config.h b/rtemsbsd/include/rtems/netcmds-config.h
index f69b17b..a909403 100644
--- a/rtemsbsd/include/rtems/netcmds-config.h
+++ b/rtemsbsd/include/rtems/netcmds-config.h
@@ -24,6 +24,8 @@ extern "C" {
extern rtems_shell_cmd_t rtems_shell_BSD_Command;
+extern rtems_shell_cmd_t rtems_shell_PFCTL_Command;
+
extern rtems_shell_cmd_t rtems_shell_PING_Command;
extern rtems_shell_cmd_t rtems_shell_PING6_Command;
diff --git a/rtemsbsd/rtems/rtems-bsd-shell-netcmds.c b/rtemsbsd/rtems/rtems-bsd-shell-netcmds.c
index e6eea02..8b4e3c7 100644
--- a/rtemsbsd/rtems/rtems-bsd-shell-netcmds.c
+++ b/rtemsbsd/rtems/rtems-bsd-shell-netcmds.c
@@ -28,6 +28,15 @@ rtems_shell_cmd_t rtems_shell_NETSTAT_Command = {
NULL /* next */
};
+rtems_shell_cmd_t rtems_shell_PFCTL_Command = {
+ "pfctl", /* name */
+ "pfctl [args]", /* usage */
+ "net", /* topic */
+ rtems_bsd_command_pfctl, /* command */
+ NULL, /* alias */
+ NULL /* next */
+};
+
rtems_shell_cmd_t rtems_shell_PING_Command = {
"ping", /* name */
"ping [args]", /* usage */
More information about the vc
mailing list