diff options
author | melifaro <melifaro@FreeBSD.org> | 2014-07-29 22:44:26 +0000 |
---|---|---|
committer | melifaro <melifaro@FreeBSD.org> | 2014-07-29 22:44:26 +0000 |
commit | bf787a59a7c6413b1dd1682177a0f93b72f0b0b3 (patch) | |
tree | 0e45b9c7486c12007aabc924bc8523b0e8a47c2f /sbin/ipfw/main.c | |
parent | 7e2cb6d90122052f5da200ce45c6e923f38e5b31 (diff) | |
download | FreeBSD-src-bf787a59a7c6413b1dd1682177a0f93b72f0b0b3.zip FreeBSD-src-bf787a59a7c6413b1dd1682177a0f93b72f0b0b3.tar.gz |
* Dump available table algorithms via "ipfw talist" cmd.
Kernel changes:
* Add type/refcount fields to table algo instances.
* Add IP_FW_TABLES_ALIST opcode to export available algorihms to userland.
Userland changes:
* Fix cores on empty input inside "ipfw table" handler.
* Add "ipfw talist" cmd to print availabled kernel algorithms.
* Change "table info" output to reflect long algorithm config lines.
Diffstat (limited to 'sbin/ipfw/main.c')
-rw-r--r-- | sbin/ipfw/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/ipfw/main.c b/sbin/ipfw/main.c index 4dbe7b7..4760360 100644 --- a/sbin/ipfw/main.c +++ b/sbin/ipfw/main.c @@ -440,6 +440,8 @@ ipfw_main(int oldac, char **oldav) ipfw_table_handler(ac, av); else if (_substrcmp(*av, "iflist") == 0) ipfw_list_tifaces(); + else if (_substrcmp(*av, "talist") == 0) + ipfw_list_ta(ac, av); else errx(EX_USAGE, "bad command `%s'", *av); } |