Netfilter-Devel Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH libnftnl] expr: meta: Make NFT_META_BRI_IIF{VPROTO,PVID} known
@ 2019-08-14  7:12 wenxu
  2019-08-14  9:12 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 2+ messages in thread
From: wenxu @ 2019-08-14  7:12 UTC (permalink / raw)
  To: pablo, fw; +Cc: netfilter-devel

From: wenxu <wenxu@ucloud.cn>

This makes debug output to support bri_iifvproto/pvid.

Signed-off-by: wenxu <wenxu@ucloud.cn>
---
 src/expr/meta.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/expr/meta.c b/src/expr/meta.c
index f1984f6..73f6efa 100644
--- a/src/expr/meta.c
+++ b/src/expr/meta.c
@@ -22,7 +22,7 @@
 #include <libnftnl/rule.h>
 
 #ifndef NFT_META_MAX
-#define NFT_META_MAX (NFT_META_OIFKIND + 1)
+#define NFT_META_MAX (NFT_META_BRI_IIFVPROTO + 1)
 #endif
 
 struct nftnl_expr_meta {
@@ -161,6 +161,8 @@ static const char *meta_key2str_array[NFT_META_MAX] = {
 	[NFT_META_SECPATH]	= "secpath",
 	[NFT_META_IIFKIND]	= "iifkind",
 	[NFT_META_OIFKIND]	= "oifkind",
+	[NFT_META_BRI_IIFPVID]	 = "bri_iifpvid",
+	[NFT_META_BRI_IIFVPROTO] = "bri_iifvproto",
 };
 
 static const char *meta_key2str(uint8_t key)
-- 
2.15.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH libnftnl] expr: meta: Make NFT_META_BRI_IIF{VPROTO,PVID} known
  2019-08-14  7:12 [PATCH libnftnl] expr: meta: Make NFT_META_BRI_IIF{VPROTO,PVID} known wenxu
@ 2019-08-14  9:12 ` Pablo Neira Ayuso
  0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2019-08-14  9:12 UTC (permalink / raw)
  To: wenxu; +Cc: fw, netfilter-devel

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-14  7:12 [PATCH libnftnl] expr: meta: Make NFT_META_BRI_IIF{VPROTO,PVID} known wenxu
2019-08-14  9:12 ` Pablo Neira Ayuso

Netfilter-Devel Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/netfilter-devel/0 netfilter-devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 netfilter-devel netfilter-devel/ https://lore.kernel.org/netfilter-devel \
		netfilter-devel@vger.kernel.org netfilter-devel@archiver.kernel.org
	public-inbox-index netfilter-devel


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.netfilter-devel


AGPL code for this site: git clone https://public-inbox.org/ public-inbox