diff options
author | melifaro <melifaro@FreeBSD.org> | 2014-07-03 22:25:59 +0000 |
---|---|---|
committer | melifaro <melifaro@FreeBSD.org> | 2014-07-03 22:25:59 +0000 |
commit | 99023231d3e6ab3f80cecab0626d12352069bedf (patch) | |
tree | 698d237c2de20d6a6adb97f520a6f5a63853b737 /sbin/ipfw/main.c | |
parent | 75913dd997a81341ee4e07a64ff5f6d7ccec1d2b (diff) | |
download | FreeBSD-src-99023231d3e6ab3f80cecab0626d12352069bedf.zip FreeBSD-src-99023231d3e6ab3f80cecab0626d12352069bedf.tar.gz |
Fully switch to named tables:
Kernel changes:
* Introduce ipfw_obj_tentry table entry structure to force u64 alignment.
* Support "update-on-existing-key" "add" bahavior (TEI_FLAGS_UPDATED).
* Use "subtype" field to distingush between IPv4 and IPv6 table records
instead of previous hack.
* Add value type (vtype) field for kernel tables. Current types are
number,ip and dscp
* Fix sets mask retrieval for old binaries
* Fix crash while using interface tables
Userland changes:
* Switch ipfw_table_handler() to use named-only tables.
* Add "table NAME create [type {cidr|iface|u32} [valtype {number|ip|dscp}] ..."
* Switch ipfw_table_handler to match_token()-based parser.
* Switch ipfw_sets_handler to use new ipfw_get_config() for mask retrieval.
* Allow ipfw set X table ... syntax to permit using per-set table namespaces.
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 82a299b..6d6e456 100644 --- a/sbin/ipfw/main.c +++ b/sbin/ipfw/main.c @@ -436,6 +436,8 @@ ipfw_main(int oldac, char **oldav) ipfw_list(ac, av, do_acct); else if (_substrcmp(*av, "show") == 0) ipfw_list(ac, av, 1 /* show counters */); + else if (_substrcmp(*av, "table") == 0) + ipfw_table_handler(ac, av); else errx(EX_USAGE, "bad command `%s'", *av); } |