From 8f4c613c9c1aa0ea6b565bbd1c5332317a3e7fdc Mon Sep 17 00:00:00 2001 From: Ana Rey Date: Thu, 23 Oct 2014 14:44:19 +0200 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- include/datatype.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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) -- cgit v1.2.3