pfctl: Add rtems_bsd_command_pfctl.

This commit is contained in:
Christian Mauderer 2016-07-22 14:49:49 +02:00
parent c79290aba6
commit 7f86f6afc7
3 changed files with 13 additions and 0 deletions

View File

@ -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_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_ping(int argc, char **argv);
int rtems_bsd_command_ping6(int argc, char **argv); int rtems_bsd_command_ping6(int argc, char **argv);

View File

@ -24,6 +24,8 @@ extern "C" {
extern rtems_shell_cmd_t rtems_shell_BSD_Command; 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_PING_Command;
extern rtems_shell_cmd_t rtems_shell_PING6_Command; extern rtems_shell_cmd_t rtems_shell_PING6_Command;

View File

@ -28,6 +28,15 @@ rtems_shell_cmd_t rtems_shell_NETSTAT_Command = {
NULL /* next */ 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 = { rtems_shell_cmd_t rtems_shell_PING_Command = {
"ping", /* name */ "ping", /* name */
"ping [args]", /* usage */ "ping [args]", /* usage */