netfilter: add includes to nf_socket.h
authorMáté Eckl <ecklm94@gmail.com>
Wed, 23 May 2018 14:26:35 +0000 (16:26 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 28 May 2018 22:23:58 +0000 (00:23 +0200)
These have to be included always when nf_socket.h is included.

Signed-off-by: Máté Eckl <ecklm94@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_socket.h

index 8230fef..29b6313 100644 (file)
@@ -2,10 +2,8 @@
 #ifndef _NF_SOCK_H_
 #define _NF_SOCK_H_
 
-struct net_device;
-struct sk_buff;
-struct sock;
-struct net;
+#include <net/sock.h>
+#include <net/inet_timewait_sock.h>
 
 static inline bool nf_sk_is_transparent(struct sock *sk)
 {