summaryrefslogtreecommitdiffstats
path: root/include/libnftables/expr.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2013-06-19 17:53:25 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-06-19 17:54:31 +0200
commit7169863df1780f53ea71659eed2c6d5bb2daa015 (patch)
tree0310d77c9fd2d3d35a64fd059c7400ba0589e4c4 /include/libnftables/expr.h
parent90b79016981776984b3aa6e77fa1b4df22eef3c5 (diff)
expr: add nft_rule_expr_snprintf
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnftables/expr.h')
-rw-r--r--include/libnftables/expr.h2
1 files changed, 2 insertions, 0 deletions
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,