From d4f9a8fb9e9acc09b0726e19e7c8e5faaa959803 Mon Sep 17 00:00:00 2001 From: Laura Garcia Liebana Date: Sat, 22 Oct 2016 23:36:07 +0200 Subject: src: add offset attribute for numgen expression Add support to add an offset to the numgen generated value. Example: ct mark set numgen inc mod 2 offset 100 This will generate marks with serie like 100, 101, 100, ... Signed-off-by: Laura Garcia Liebana Signed-off-by: Pablo Neira Ayuso --- include/numgen.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/numgen.h') diff --git a/include/numgen.h b/include/numgen.h index bec18e5a..b2306200 100644 --- a/include/numgen.h +++ b/include/numgen.h @@ -2,6 +2,7 @@ #define NFTABLES_NUMGEN_H extern struct expr *numgen_expr_alloc(const struct location *loc, - enum nft_ng_types type, uint32_t until); + enum nft_ng_types type, uint32_t until, + uint32_t offset); #endif /* NFTABLES_NUMGEN_H */ -- cgit v1.2.3