Message ID | 20180523091627.16920-1-ecklm94@gmail.com |
---|---|
State | Changes Requested |
Delegated to: | Pablo Neira |
Headers | show |
Series | [nf-next] netfilter: added includes to nf_socket.h | expand |
On Wed, May 23, 2018 at 11:16:27AM +0200, Máté Eckl wrote: > These have to be included always when nf_socket.h is included. > > Signed-off-by: Máté Eckl <ecklm94@gmail.com> > --- > include/net/netfilter/nf_socket.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/include/net/netfilter/nf_socket.h b/include/net/netfilter/nf_socket.h > index 8230fefff9f5..bf1680be54c3 100644 > --- a/include/net/netfilter/nf_socket.h > +++ b/include/net/netfilter/nf_socket.h > @@ -2,6 +2,9 @@ > #ifndef _NF_SOCK_H_ > #define _NF_SOCK_H_ > > +#include <net/sock.h> > +#include <net/inet_timewait_sock.h> > + > struct net_device; > struct sk_buff; > struct sock; We can probably remove this forward declaration after net/sock.h is included? -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/include/net/netfilter/nf_socket.h b/include/net/netfilter/nf_socket.h index 8230fefff9f5..bf1680be54c3 100644 --- a/include/net/netfilter/nf_socket.h +++ b/include/net/netfilter/nf_socket.h @@ -2,6 +2,9 @@ #ifndef _NF_SOCK_H_ #define _NF_SOCK_H_ +#include <net/sock.h> +#include <net/inet_timewait_sock.h> + struct net_device; struct sk_buff; struct sock;
These have to be included always when nf_socket.h is included. Signed-off-by: Máté Eckl <ecklm94@gmail.com> --- include/net/netfilter/nf_socket.h | 3 +++ 1 file changed, 3 insertions(+)