summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2014-01-15 06:58:06 +0000
committerPatrick McHardy <kaber@trash.net>2014-01-15 06:58:06 +0000
commit4dc042dcb2c189aedd8e277fe15165d61d675a85 (patch)
treed79cf057f4c72bb5b0c11d241b7f242b2e565ded /include/linux
parent57175a87d47d88996965119838650c10f123c4db (diff)
libnftables: replace netfilter.h by sanitized header
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/netfilter.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h
index ef1b1f8..be0bc18 100644
--- a/include/linux/netfilter.h
+++ b/include/linux/netfilter.h
@@ -1,8 +1,8 @@
-#ifndef _UAPI__LINUX_NETFILTER_H
-#define _UAPI__LINUX_NETFILTER_H
+#ifndef __LINUX_NETFILTER_H
+#define __LINUX_NETFILTER_H
#include <linux/types.h>
-#include <linux/compiler.h>
+
#include <linux/sysctl.h>
@@ -32,7 +32,6 @@
#define NF_DROP_ERR(x) (((-x) << 16) | NF_DROP)
/* only for userspace compatibility */
-#ifndef __KERNEL__
/* Generic cache responses from hook functions.
<= 0x2000 is used for protocol-flags. */
#define NFC_UNKNOWN 0x4000
@@ -40,7 +39,6 @@
/* NF_VERDICT_BITS should be 8 now, but userspace might break if this changes */
#define NF_VERDICT_BITS 16
-#endif
enum nf_inet_hooks {
NF_INET_PRE_ROUTING,
@@ -70,4 +68,4 @@ union nf_inet_addr {
struct in6_addr in6;
};
-#endif /* _UAPI__LINUX_NETFILTER_H */
+#endif /* __LINUX_NETFILTER_H */