path: root/include/buffer.h
diff options
authorLiping Zhang <>2016-09-14 23:45:44 +0800
committerPablo Neira Ayuso <>2016-09-22 17:11:52 +0200
commitf3bd67823b16fb7ef1ca4e4d93535f77eb0c2b53 (patch)
treef0c557ed9e06ec4eeae496fe3d6d423e795ee5ad /include/buffer.h
parent7898b0fb2018ecec894e8bf6cf1c1102a7b4c9ee (diff)
expr: queue: add NFTA_QUEUE_SREG_QNUM attr support
After adding _SREG_QNUM attr, queuenum is not must option anymore, so we must test NFTNL_EXPR_QUEUE_NUM first before dumpping queue num in snprintf_default. Also add a tailing space in snprintf_default, this is consistent with other expressions. Signed-off-by: Liping Zhang <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/buffer.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/include/buffer.h b/include/buffer.h
index a753c78..ab1d468 100644
--- a/include/buffer.h
+++ b/include/buffer.h
@@ -77,6 +77,7 @@ int nftnl_buf_reg(struct nftnl_buf *b, int type, union nftnl_data_reg *reg,
#define SREG_PROTO_MIN "sreg_proto_min"
#define SREG_KEY "sreg_key"
#define SREG_DATA "sreg_data"
+#define SREG_QNUM "sreg_qnum"
#define SREG "sreg"
#define TABLE "table"
#define TOTAL "total"