From f3bd67823b16fb7ef1ca4e4d93535f77eb0c2b53 Mon Sep 17 00:00:00 2001 From: Liping Zhang Date: Wed, 14 Sep 2016 23:45:44 +0800 Subject: 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 --- include/buffer.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/buffer.h') 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" -- cgit v1.2.3