浏览代码

netfilter: add includes to nf_socket.h

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>
Máté Eckl 7 年之前
父节点
当前提交
e5a10bb2ac
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      include/net/netfilter/nf_socket.h

+ 2 - 4
include/net/netfilter/nf_socket.h

@@ -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)
 {