path: root/src/expr/match.c
diff options
authorPablo Neira Ayuso <>2013-01-15 14:16:38 +0100
committerPablo Neira Ayuso <>2013-01-15 14:16:38 +0100
commitc6a30cfe9057a707f5c5b70ee247485872abc56c (patch)
treecfeab1e1925cc6a76e5e7abeb8e5e928fb81ae17 /src/expr/match.c
parent84d946b6573b02f83f14984ae737508749d2a419 (diff)
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 <>
Diffstat (limited to 'src/expr/match.c')
1 files changed, 2 insertions, 1 deletions
diff --git a/src/expr/match.c b/src/expr/match.c
index 3fc8787..855d210 100644
--- a/src/expr/match.c
+++ b/src/expr/match.c
@@ -184,7 +184,8 @@ static int nft_rule_expr_match_parse(struct nft_rule_expr *e, struct nlattr *att
static int
-nft_rule_expr_match_snprintf(char *buf, size_t len, struct nft_rule_expr *e)
+nft_rule_expr_match_snprintf(char *buf, size_t len, uint32_t type,
+ uint32_t flags, struct nft_rule_expr *e)
struct nft_expr_match *match = (struct nft_expr_match *)e->data;