[PATCH nft] nft: set: print dynamic flag when set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Florian Westphal <fw@xxxxxxxxx>
---
 src/rule.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/rule.c b/src/rule.c
index 188fc062129c..0a1d6317a514 100644
--- a/src/rule.c
+++ b/src/rule.c
@@ -383,12 +383,16 @@ static void set_print_declaration(const struct set *set,
 	if (set->timeout)
 		flags &= ~NFT_SET_TIMEOUT;
 
-	if (flags & (NFT_SET_CONSTANT | NFT_SET_INTERVAL | NFT_SET_TIMEOUT)) {
+	if (flags & (NFT_SET_CONSTANT | NFT_SET_INTERVAL | NFT_SET_TIMEOUT | NFT_SET_EVAL)) {
 		nft_print(octx, "%s%sflags ", opts->tab, opts->tab);
 		if (set->flags & NFT_SET_CONSTANT) {
 			nft_print(octx, "%sconstant", delim);
 			delim = ",";
 		}
+		if (set->flags & NFT_SET_EVAL) {
+			nft_print(octx, "%sdynamic", delim);
+			delim = ",";
+		}
 		if (set->flags & NFT_SET_INTERVAL) {
 			nft_print(octx, "%sinterval", delim);
 			delim = ",";
-- 
2.16.4

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux