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/libnftnl/expr.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/libnftnl') diff --git a/include/libnftnl/expr.h b/include/libnftnl/expr.h index a8206ba..4ce2592 100644 --- a/include/libnftnl/expr.h +++ b/include/libnftnl/expr.h @@ -177,6 +177,7 @@ enum { NFTNL_EXPR_QUEUE_NUM = NFTNL_EXPR_BASE, NFTNL_EXPR_QUEUE_TOTAL, NFTNL_EXPR_QUEUE_FLAGS, + NFTNL_EXPR_QUEUE_SREG_QNUM, }; enum { -- cgit v1.2.3