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

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