From 7169863df1780f53ea71659eed2c6d5bb2daa015 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 19 Jun 2013 17:53:25 +0200 Subject: expr: add nft_rule_expr_snprintf Signed-off-by: Pablo Neira Ayuso --- include/libnftables/expr.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/libnftables') diff --git a/include/libnftables/expr.h b/include/libnftables/expr.h index 38cd698..2c319ab 100644 --- a/include/libnftables/expr.h +++ b/include/libnftables/expr.h @@ -32,6 +32,8 @@ const char *nft_rule_expr_get_str(const struct nft_rule_expr *expr, uint16_t typ void nft_rule_expr_build_payload(struct nlmsghdr *nlh, struct nft_rule_expr *expr); +int nft_rule_expr_snprintf(char *buf, size_t buflen, struct nft_rule_expr *expr, uint32_t type, uint32_t flags); + enum { NFT_EXPR_PAYLOAD_DREG = NFT_RULE_EXPR_ATTR_BASE, NFT_EXPR_PAYLOAD_BASE, -- cgit v1.2.3