diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-06-17 11:28:27 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-06-18 15:14:31 -0400 |
commit | a263653ed798216c0069922d7b5237ca49436007 (patch) | |
tree | dc6cf8cc8519a3aa4bbb988699bc75042470a793 /include/net/netns | |
parent | 10c04a8e715cca824f96bcbf4af07f5a40985357 (diff) |
netfilter: don't pull include/linux/netfilter.h from netns headers
This pulls the full hook netfilter definitions from all those that include
net_namespace.h.
Instead let's just include the bare minimum required in the new
linux/netfilter_defs.h file, and use it from the netfilter netns header files.
I also needed to include in.h and in6.h from linux/netfilter.h otherwise we hit
this compilation error:
In file included from include/linux/netfilter_defs.h:4:0,
from include/net/netns/netfilter.h:4,
from include/net/net_namespace.h:22,
from include/linux/netdevice.h:43,
from net/netfilter/nfnetlink_queue_core.c:23:
include/uapi/linux/netfilter.h:76:17: error: field ‘in’ has incomplete type struct in_addr in;
And also explicit include linux/netfilter.h in several spots.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'include/net/netns')
-rw-r--r-- | include/net/netns/netfilter.h | 2 | ||||
-rw-r--r-- | include/net/netns/x_tables.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/net/netns/netfilter.h b/include/net/netns/netfilter.h index cf25b5e35f3c..532e4ba64f49 100644 --- a/include/net/netns/netfilter.h +++ b/include/net/netns/netfilter.h | |||
@@ -1,7 +1,7 @@ | |||
1 | #ifndef __NETNS_NETFILTER_H | 1 | #ifndef __NETNS_NETFILTER_H |
2 | #define __NETNS_NETFILTER_H | 2 | #define __NETNS_NETFILTER_H |
3 | 3 | ||
4 | #include <linux/netfilter.h> | 4 | #include <linux/netfilter_defs.h> |
5 | 5 | ||
6 | struct proc_dir_entry; | 6 | struct proc_dir_entry; |
7 | struct nf_logger; | 7 | struct nf_logger; |
diff --git a/include/net/netns/x_tables.h b/include/net/netns/x_tables.h index 4d6597ad6067..c8a7681efa6a 100644 --- a/include/net/netns/x_tables.h +++ b/include/net/netns/x_tables.h | |||
@@ -2,7 +2,7 @@ | |||
2 | #define __NETNS_X_TABLES_H | 2 | #define __NETNS_X_TABLES_H |
3 | 3 | ||
4 | #include <linux/list.h> | 4 | #include <linux/list.h> |
5 | #include <linux/netfilter.h> | 5 | #include <linux/netfilter_defs.h> |
6 | 6 | ||
7 | struct ebt_table; | 7 | struct ebt_table; |
8 | 8 | ||