Blame SOURCES/0005-include-Sync-with-kernel-headers.patch

4ce5c9
From 68637125ac6842f20ac3898c0d0d252be882a017 Mon Sep 17 00:00:00 2001
4ce5c9
From: Felix Janda <felix.janda@posteo.de>
4ce5c9
Date: Sat, 16 May 2015 13:35:14 +0200
4ce5c9
Subject: [PATCH] include: Sync with kernel headers
4ce5c9
4ce5c9
Signed-off-by: Felix Janda <felix.janda@posteo.de>
4ce5c9
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
4ce5c9
(cherry picked from commit 7d55aff4686a5910f84b9045c98d6f01e1daa297)
4ce5c9
Signed-off-by: Phil Sutter <psutter@redhat.com>
4ce5c9
---
4ce5c9
 include/linux/netfilter/nfnetlink.h | 52 ++++++-----------------------
4ce5c9
 1 file changed, 11 insertions(+), 41 deletions(-)
4ce5c9
4ce5c9
diff --git a/include/linux/netfilter/nfnetlink.h b/include/linux/netfilter/nfnetlink.h
4ce5c9
index f1b546e85d590..c755646752011 100644
4ce5c9
--- a/include/linux/netfilter/nfnetlink.h
4ce5c9
+++ b/include/linux/netfilter/nfnetlink.h
4ce5c9
@@ -18,6 +18,10 @@ enum nfnetlink_groups {
4ce5c9
 #define NFNLGRP_CONNTRACK_EXP_UPDATE	NFNLGRP_CONNTRACK_EXP_UPDATE
4ce5c9
 	NFNLGRP_CONNTRACK_EXP_DESTROY,
4ce5c9
 #define NFNLGRP_CONNTRACK_EXP_DESTROY	NFNLGRP_CONNTRACK_EXP_DESTROY
4ce5c9
+	NFNLGRP_NFTABLES,
4ce5c9
+#define NFNLGRP_NFTABLES                NFNLGRP_NFTABLES
4ce5c9
+	NFNLGRP_ACCT_QUOTA,
4ce5c9
+#define NFNLGRP_ACCT_QUOTA		NFNLGRP_ACCT_QUOTA
4ce5c9
 	__NFNLGRP_MAX,
4ce5c9
 };
4ce5c9
 #define NFNLGRP_MAX	(__NFNLGRP_MAX - 1)
4ce5c9
@@ -51,46 +55,12 @@ struct nfgenmsg {
4ce5c9
 #define NFNL_SUBSYS_ACCT		7
4ce5c9
 #define NFNL_SUBSYS_CTNETLINK_TIMEOUT	8
4ce5c9
 #define NFNL_SUBSYS_CTHELPER		9
4ce5c9
-#define NFNL_SUBSYS_COUNT		10
4ce5c9
+#define NFNL_SUBSYS_NFTABLES		10
4ce5c9
+#define NFNL_SUBSYS_NFT_COMPAT		11
4ce5c9
+#define NFNL_SUBSYS_COUNT		12
4ce5c9
 
4ce5c9
-#ifdef __KERNEL__
4ce5c9
+/* Reserved control nfnetlink messages */
4ce5c9
+#define NFNL_MSG_BATCH_BEGIN		NLMSG_MIN_TYPE
4ce5c9
+#define NFNL_MSG_BATCH_END		NLMSG_MIN_TYPE+1
4ce5c9
 
4ce5c9
-#include <linux/netlink.h>
4ce5c9
-#include <linux/capability.h>
4ce5c9
-#include <net/netlink.h>
4ce5c9
-
4ce5c9
-struct nfnl_callback {
4ce5c9
-	int (*call)(struct sock *nl, struct sk_buff *skb, 
4ce5c9
-		    const struct nlmsghdr *nlh,
4ce5c9
-		    const struct nlattr * const cda[]);
4ce5c9
-	int (*call_rcu)(struct sock *nl, struct sk_buff *skb, 
4ce5c9
-		    const struct nlmsghdr *nlh,
4ce5c9
-		    const struct nlattr * const cda[]);
4ce5c9
-	const struct nla_policy *policy;	/* netlink attribute policy */
4ce5c9
-	const u_int16_t attr_count;		/* number of nlattr's */
4ce5c9
-};
4ce5c9
-
4ce5c9
-struct nfnetlink_subsystem {
4ce5c9
-	const char *name;
4ce5c9
-	__u8 subsys_id;			/* nfnetlink subsystem ID */
4ce5c9
-	__u8 cb_count;			/* number of callbacks */
4ce5c9
-	const struct nfnl_callback *cb;	/* callback for individual types */
4ce5c9
-};
4ce5c9
-
4ce5c9
-extern int nfnetlink_subsys_register(const struct nfnetlink_subsystem *n);
4ce5c9
-extern int nfnetlink_subsys_unregister(const struct nfnetlink_subsystem *n);
4ce5c9
-
4ce5c9
-extern int nfnetlink_has_listeners(struct net *net, unsigned int group);
4ce5c9
-extern int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 pid, unsigned group,
4ce5c9
-			  int echo, gfp_t flags);
4ce5c9
-extern int nfnetlink_set_err(struct net *net, u32 pid, u32 group, int error);
4ce5c9
-extern int nfnetlink_unicast(struct sk_buff *skb, struct net *net, u_int32_t pid, int flags);
4ce5c9
-
4ce5c9
-extern void nfnl_lock(void);
4ce5c9
-extern void nfnl_unlock(void);
4ce5c9
-
4ce5c9
-#define MODULE_ALIAS_NFNL_SUBSYS(subsys) \
4ce5c9
-	MODULE_ALIAS("nfnetlink-subsys-" __stringify(subsys))
4ce5c9
-
4ce5c9
-#endif	/* __KERNEL__ */
4ce5c9
-#endif	/* _NFNETLINK_H */
4ce5c9
+#endif /* _NFNETLINK_H */
4ce5c9
-- 
4ce5c9
2.23.0
4ce5c9