nftables/include/numgen.h
Laura Garcia Liebana d4f9a8fb9e 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 <nevola@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2016-10-27 21:46:43 +02:00

9 lines
229 B
C

#ifndef NFTABLES_NUMGEN_H
#define NFTABLES_NUMGEN_H
extern struct expr *numgen_expr_alloc(const struct location *loc,
enum nft_ng_types type, uint32_t until,
uint32_t offset);
#endif /* NFTABLES_NUMGEN_H */