From 7898b0fb2018ecec894e8bf6cf1c1102a7b4c9ee Mon Sep 17 00:00:00 2001 From: Laura Garcia Liebana Date: Tue, 13 Sep 2016 13:50:41 +0200 Subject: expr: numgen: add number generation offset Add support to pass through an offset value to the counter initialization. With this feature, the sysadmin is able to apply a value to be added to the generated number. Example: meta mark set numgen inc mod 2 offset 100 This will generate marks with series 100, 101, 100, 101, ... Suggested-by: Pablo Neira Ayuso Signed-off-by: Laura Garcia Liebana Signed-off-by: Pablo Neira Ayuso --- include/libnftnl/expr.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/libnftnl') diff --git a/include/libnftnl/expr.h b/include/libnftnl/expr.h index 8b35203..a8206ba 100644 --- a/include/libnftnl/expr.h +++ b/include/libnftnl/expr.h @@ -54,6 +54,7 @@ enum { NFTNL_EXPR_NG_DREG = NFTNL_EXPR_BASE, NFTNL_EXPR_NG_MODULUS, NFTNL_EXPR_NG_TYPE, + NFTNL_EXPR_NG_OFFSET, }; enum { -- cgit v1.2.3