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 /include | |
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 'include')
-rw-r--r-- | include/datatype.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/datatype.h b/include/datatype.h index 15fea441..3f13dcde 100644 --- a/include/datatype.h +++ b/include/datatype.h @@ -39,6 +39,7 @@ * @TYPE_ICMP_CODE: icmp code (integer subtype) * @TYPE_ICMPV6_CODE: icmpv6 code (integer subtype) * @TYPE_ICMPX_CODE: icmpx code (integer subtype) + * @TYPE_DEVGROUP: devgroup code (integer subtype) */ enum datatypes { TYPE_INVALID, @@ -76,6 +77,7 @@ enum datatypes { TYPE_ICMP_CODE, TYPE_ICMPV6_CODE, TYPE_ICMPX_CODE, + TYPE_DEVGROUP, __TYPE_MAX }; #define TYPE_MAX (__TYPE_MAX - 1) |