From c6a30cfe9057a707f5c5b70ee247485872abc56c Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 15 Jan 2013 14:16:38 +0100 Subject: expr: add type and flags to snprintf interface Propagate the type and flags parameter to the expressions, so we can implement outputs in different formats. Signed-off-by: Pablo Neira Ayuso --- src/rule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rule.c') diff --git a/src/rule.c b/src/rule.c index 6dc46f3..f87600d 100644 --- a/src/rule.c +++ b/src/rule.c @@ -336,7 +336,7 @@ int nft_rule_snprintf(char *buf, size_t size, struct nft_rule *r, ret = snprintf(buf+offset, len, "%s ", expr->ops->name); SNPRINTF_BUFFER_SIZE(ret, size, len, offset); - ret = expr->ops->snprintf(buf+offset, len, expr); + ret = expr->ops->snprintf(buf+offset, len, type, flags, expr); SNPRINTF_BUFFER_SIZE(ret, size, len, offset); } ret = snprintf(buf+offset-1, len, "\n"); -- cgit v1.2.3