From fc53d1b6b93d9ca194334c43931753e19bcb127b Mon Sep 17 00:00:00 2001 From: Arturo Borrero Date: Fri, 3 Oct 2014 14:46:41 +0200 Subject: src: add nat persistent and random options This patch adds more configuration options to the nat expression. The syntax is as follow: % nft add rule nat postrouting [flags] Flags are: random, persistent, random-fully. Example: % nft add rule nat postrouting dnat 1.1.1.1 random,persistent A requirement is to cache some [recent] copies of kernel headers. Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- include/statement.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/statement.h') diff --git a/include/statement.h b/include/statement.h index 574835cd..e5232542 100644 --- a/include/statement.h +++ b/include/statement.h @@ -68,6 +68,7 @@ struct nat_stmt { enum nft_nat_types type; struct expr *addr; struct expr *proto; + uint32_t flags; }; extern struct stmt *nat_stmt_alloc(const struct location *loc); -- cgit v1.2.3