diff options
author | Ana Rey <anarey@gmail.com> | 2014-10-23 14:44:19 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-10-24 12:05:29 +0200 |
commit | 8f4c613c9c1aa0ea6b565bbd1c5332317a3e7fdc (patch) | |
tree | bbca9b74042975d2960da871ad31fe402bdece56 /tests/regression/any/meta.t | |
parent | 00a9ab8484c817853d692d7f88a206a97cb40a47 (diff) |
meta: Add support for datatype devgroup
This adds the new devgroup datatype to get the group name from
/etc/iproute2/group file.
Example of use:
nft add rule ip test input meta iifgroup 0 counter
nft add rule ip test input meta iifgroup default counter
Moreover, It adds tests in meta.t test file.
Signed-off-by: Ana Rey <anarey@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/regression/any/meta.t')
-rw-r--r-- | tests/regression/any/meta.t | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/regression/any/meta.t b/tests/regression/any/meta.t index 5bc38724..1e7a0fe7 100644 --- a/tests/regression/any/meta.t +++ b/tests/regression/any/meta.t @@ -158,3 +158,24 @@ meta cpu 1-3;ok;cpu >= 1 cpu <= 3 meta cpu != 1-2;ok;cpu < 1 cpu > 2 meta cpu { 2,3};ok;cpu { 2, 3} -meta cpu != { 2,3};ok + +meta iifgroup 0;ok;iifgroup default +meta iifgroup != 0;ok;iifgroup != default +meta iifgroup default;ok;iifgroup default +meta iifgroup != default;ok;iifgroup != default +meta iifgroup {default};ok;;iifgroup {default} +- meta iifgroup != {default};ok +meta iifgroup {11,33};ok;oifgroup {11,33} +meta iifgroup {11-33};ok +- meta iifgroup != {11,33};ok +- meta iifgroup != {11-33};ok +meta oifgroup 0;ok;oifgroup default +meta oifgroup != 0;ok;oifgroup != default +meta oifgroup default;ok;oifgroup default +meta oifgroup != default;ok;oifgroup != default +meta oifgroup {default};ok;oifgroup {default} +- meta oifgroup != {default};ok +meta oifgroup {11,33};ok;oifgroup {11,33} +meta oifgroup {11-33};ok +- meta oifgroup != {11,33};ok +- meta oifgroup != {11-33};ok |