Blame SOURCES/0006-include-resync-nf_tables.h-cache-copy.patch

763a55
From 83cc5382243253156b5813f0d6b9527cbede5aa3 Mon Sep 17 00:00:00 2001
763a55
From: Phil Sutter <psutter@redhat.com>
763a55
Date: Thu, 13 Feb 2020 17:47:45 +0100
763a55
Subject: [PATCH] include: resync nf_tables.h cache copy
763a55
763a55
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1795223
763a55
Upstream Status: libnftnl commit 131a6c2fa4ccc
763a55
763a55
commit 131a6c2fa4cccaa04a7b93b686f10f5ba6f11b3d
763a55
Author: Stefano Brivio <sbrivio@redhat.com>
763a55
Date:   Thu Jan 30 01:16:32 2020 +0100
763a55
763a55
    include: resync nf_tables.h cache copy
763a55
763a55
    Get this header in sync with nf-next as of merge commit
763a55
    b3a608222336 (5.6-rc1-ish).
763a55
763a55
    Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
763a55
    Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
763a55
---
763a55
 include/linux/netfilter/nf_tables.h | 17 +++++++++++++++++
763a55
 1 file changed, 17 insertions(+)
763a55
763a55
diff --git a/include/linux/netfilter/nf_tables.h b/include/linux/netfilter/nf_tables.h
763a55
index bb9b049..312c7b2 100644
763a55
--- a/include/linux/netfilter/nf_tables.h
763a55
+++ b/include/linux/netfilter/nf_tables.h
763a55
@@ -48,6 +48,7 @@ enum nft_registers {
763a55
 
763a55
 #define NFT_REG_SIZE	16
763a55
 #define NFT_REG32_SIZE	4
763a55
+#define NFT_REG32_COUNT	(NFT_REG32_15 - NFT_REG32_00 + 1)
763a55
 
763a55
 /**
763a55
  * enum nft_verdicts - nf_tables internal verdicts
763a55
@@ -301,15 +302,29 @@ enum nft_set_policies {
763a55
  * enum nft_set_desc_attributes - set element description
763a55
  *
763a55
  * @NFTA_SET_DESC_SIZE: number of elements in set (NLA_U32)
763a55
+ * @NFTA_SET_DESC_CONCAT: description of field concatenation (NLA_NESTED)
763a55
  */
763a55
 enum nft_set_desc_attributes {
763a55
 	NFTA_SET_DESC_UNSPEC,
763a55
 	NFTA_SET_DESC_SIZE,
763a55
+	NFTA_SET_DESC_CONCAT,
763a55
 	__NFTA_SET_DESC_MAX
763a55
 };
763a55
 #define NFTA_SET_DESC_MAX	(__NFTA_SET_DESC_MAX - 1)
763a55
 
763a55
 /**
763a55
+ * enum nft_set_field_attributes - attributes of concatenated fields
763a55
+ *
763a55
+ * @NFTA_SET_FIELD_LEN: length of single field, in bits (NLA_U32)
763a55
+ */
763a55
+enum nft_set_field_attributes {
763a55
+	NFTA_SET_FIELD_UNSPEC,
763a55
+	NFTA_SET_FIELD_LEN,
763a55
+	__NFTA_SET_FIELD_MAX
763a55
+};
763a55
+#define NFTA_SET_FIELD_MAX	(__NFTA_SET_FIELD_MAX - 1)
763a55
+
763a55
+/**
763a55
  * enum nft_set_attributes - nf_tables set netlink attributes
763a55
  *
763a55
  * @NFTA_SET_TABLE: table name (NLA_STRING)
763a55
@@ -370,6 +385,7 @@ enum nft_set_elem_flags {
763a55
  * @NFTA_SET_ELEM_USERDATA: user data (NLA_BINARY)
763a55
  * @NFTA_SET_ELEM_EXPR: expression (NLA_NESTED: nft_expr_attributes)
763a55
  * @NFTA_SET_ELEM_OBJREF: stateful object reference (NLA_STRING)
763a55
+ * @NFTA_SET_ELEM_KEY_END: closing key value (NLA_NESTED: nft_data)
763a55
  */
763a55
 enum nft_set_elem_attributes {
763a55
 	NFTA_SET_ELEM_UNSPEC,
763a55
@@ -382,6 +398,7 @@ enum nft_set_elem_attributes {
763a55
 	NFTA_SET_ELEM_EXPR,
763a55
 	NFTA_SET_ELEM_PAD,
763a55
 	NFTA_SET_ELEM_OBJREF,
763a55
+	NFTA_SET_ELEM_KEY_END,
763a55
 	__NFTA_SET_ELEM_MAX
763a55
 };
763a55
 #define NFTA_SET_ELEM_MAX	(__NFTA_SET_ELEM_MAX - 1)
763a55
-- 
763a55
1.8.3.1
763a55