netfilter: nf_conntrack_tuple_common.h: fix #include
authorDavide Caratti <dcaratti@redhat.com>
Tue, 15 Nov 2016 14:08:24 +0000 (15:08 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 4 Dec 2016 19:49:18 +0000 (20:49 +0100)
commit3fefeb88d002850e591339fed291eb6a795d9f21
tree245501a0a0a8794660aa731c7c057e78288f8966
parentf6b3ef5e380d5eba61e4e91a3c26ed7fd2b67347
netfilter: nf_conntrack_tuple_common.h: fix #include

To allow usage of enum ip_conntrack_dir in include/net/netns/conntrack.h,
this patch encloses #include <linux/netfilter.h> in a #ifndef __KERNEL__
directive, so that compiler errors caused by unwanted inclusion of
include/linux/netfilter.h are avoided.
In addition, #include <linux/netfilter/nf_conntrack_common.h> line has
been added to resolve correctly CTINFO2DIR macro.

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Acked-by: Mikko Rapeli <mikko.rapeli@iki.fi>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/uapi/linux/netfilter/nf_conntrack_tuple_common.h