diff --git a/rtemsbsd/include/machine/rtems-bsd-commands.h b/rtemsbsd/include/machine/rtems-bsd-commands.h index 8fd865e8..fae847ed 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 d2d15ea2..220109ba 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 1271ff36..fe63a5aa 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 */