diff options
author | Christian Mauderer <Christian.Mauderer@embedded-brains.de> | 2016-07-22 14:49:49 +0200 |
---|---|---|
committer | Christian Mauderer <Christian.Mauderer@embedded-brains.de> | 2016-08-02 10:21:52 +0200 |
commit | 7f86f6afc701b350eed51a897a83d608c4cf1c75 (patch) | |
tree | 4eeaacdc6831f629a27371db817c5a7209126394 | |
parent | pfctl: build files. (diff) | |
download | rtems-libbsd-7f86f6afc701b350eed51a897a83d608c4cf1c75.tar.bz2 |
pfctl: Add rtems_bsd_command_pfctl.
-rw-r--r-- | rtemsbsd/include/machine/rtems-bsd-commands.h | 2 | ||||
-rw-r--r-- | rtemsbsd/include/rtems/netcmds-config.h | 2 | ||||
-rw-r--r-- | rtemsbsd/rtems/rtems-bsd-shell-netcmds.c | 9 |
3 files changed, 13 insertions, 0 deletions
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 */ |