Re: [PATCH nft] expr: add map lookups for numgen statements

2018-06-07 Thread Pablo Neira Ayuso
Hi Laura, On Sun, Apr 22, 2018 at 11:05:53AM +0200, Laura Garcia Liebana wrote: > +numgen_expr : NUMGEN numgen_type MOD NUM > offset_opt numgen_map_expr Hint: Instead of adding numgen_map_expr, what you could do is to reuse the existing parser. Look: # nft add r

[PATCH nft] expr: add map lookups for numgen statements

2018-04-22 Thread Laura Garcia Liebana
This patch introduces a map as a numgen attribute, which permits to lookup a value based on the numgen result as the key. This approach only supports named maps. Signed-off-by: Laura Garcia Liebana --- include/expression.h| 1 + include/linux/netfilter/nf_tables.h | 4 in