summaryrefslogtreecommitdiff
path: root/include/uapi/linux/netfilter_ipv6/ip6_tables.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/uapi/linux/netfilter_ipv6/ip6_tables.h')
-rw-r--r--include/uapi/linux/netfilter_ipv6/ip6_tables.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/include/uapi/linux/netfilter_ipv6/ip6_tables.h b/include/uapi/linux/netfilter_ipv6/ip6_tables.h
index 649c68062dca..640a1d09690c 100644
--- a/include/uapi/linux/netfilter_ipv6/ip6_tables.h
+++ b/include/uapi/linux/netfilter_ipv6/ip6_tables.h
@@ -12,16 +12,15 @@
* Port numbers are stored in HOST byte order.
*/
-#ifndef _UAPI_IP6_TABLES_H
-#define _UAPI_IP6_TABLES_H
+#ifndef _IP6_TABLES_H
+#define _IP6_TABLES_H
#include <linux/types.h>
-#include <linux/compiler.h>
+
#include <linux/netfilter_ipv6.h>
#include <linux/netfilter/x_tables.h>
-#ifndef __KERNEL__
#define IP6T_FUNCTION_MAXNAMELEN XT_FUNCTION_MAXNAMELEN
#define IP6T_TABLE_MAXNAMELEN XT_TABLE_MAXNAMELEN
#define ip6t_match xt_match
@@ -56,7 +55,6 @@
XT_MATCH_ITERATE(struct ip6t_entry, e, fn, ## args)
#define IP6T_ENTRY_ITERATE(entries, size, fn, args...) \
XT_ENTRY_ITERATE(struct ip6t_entry, entries, size, fn, ## args)
-#endif
/* Yes, Virginia, you have to zero the padding. */
struct ip6t_ip6 {
@@ -238,7 +236,7 @@ struct ip6t_replace {
/* Number of counters (must be equal to current number of entries). */
unsigned int num_counters;
/* The old entries' counters. */
- struct xt_counters __user *counters;
+ struct xt_counters *counters;
/* The entries (hang off end: not really an array). */
struct ip6t_entry entries[0];
@@ -267,4 +265,4 @@ ip6t_get_target(struct ip6t_entry *e)
* Main firewall chains definitions and global var's definitions.
*/
-#endif /* _UAPI_IP6_TABLES_H */
+#endif /* _IP6_TABLES_H */