From b0eda365d2592591d74fe446e9b9bcd37ec72512 Mon Sep 17 00:00:00 2001 From: Christian Mauderer Date: Fri, 22 Jul 2016 14:49:49 +0200 Subject: 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 df251787..01dabd5b 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 f69b17b5..a9094039 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 e6eea024..8b4e3c70 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 */ -- cgit v1.2.3