netfilter: xtables: add missing header inclusions for headers_check
authorJan Engelhardt <jengelh@medozas.de>
Thu, 20 Jan 2011 16:50:17 +0000 (17:50 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Thu, 20 Jan 2011 16:50:17 +0000 (17:50 +0100)
Resolve these warnings on `make headers_check`:

usr/include/linux/netfilter/xt_CT.h:7: found __[us]{8,16,32,64} type
without #include <linux/types.h>
...

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
39 files changed:
include/linux/netfilter/xt_CT.h
include/linux/netfilter/xt_TCPOPTSTRIP.h
include/linux/netfilter/xt_TPROXY.h
include/linux/netfilter/xt_cluster.h
include/linux/netfilter/xt_connlimit.h
include/linux/netfilter/xt_quota.h
include/linux/netfilter/xt_socket.h
include/linux/netfilter/xt_time.h
include/linux/netfilter/xt_u32.h
include/linux/netfilter_bridge/ebt_802_3.h
include/linux/netfilter_bridge/ebt_among.h
include/linux/netfilter_bridge/ebt_arp.h
include/linux/netfilter_bridge/ebt_ip.h
include/linux/netfilter_bridge/ebt_ip6.h
include/linux/netfilter_bridge/ebt_limit.h
include/linux/netfilter_bridge/ebt_log.h
include/linux/netfilter_bridge/ebt_mark_m.h
include/linux/netfilter_bridge/ebt_nflog.h
include/linux/netfilter_bridge/ebt_pkttype.h
include/linux/netfilter_bridge/ebt_stp.h
include/linux/netfilter_bridge/ebt_ulog.h
include/linux/netfilter_bridge/ebt_vlan.h
include/linux/netfilter_ipv4/ipt_CLUSTERIP.h
include/linux/netfilter_ipv4/ipt_ECN.h
include/linux/netfilter_ipv4/ipt_SAME.h
include/linux/netfilter_ipv4/ipt_TTL.h
include/linux/netfilter_ipv4/ipt_addrtype.h
include/linux/netfilter_ipv4/ipt_ah.h
include/linux/netfilter_ipv4/ipt_ecn.h
include/linux/netfilter_ipv4/ipt_ttl.h
include/linux/netfilter_ipv6/ip6t_HL.h
include/linux/netfilter_ipv6/ip6t_REJECT.h
include/linux/netfilter_ipv6/ip6t_ah.h
include/linux/netfilter_ipv6/ip6t_frag.h
include/linux/netfilter_ipv6/ip6t_hl.h
include/linux/netfilter_ipv6/ip6t_ipv6header.h
include/linux/netfilter_ipv6/ip6t_mh.h
include/linux/netfilter_ipv6/ip6t_opts.h
include/linux/netfilter_ipv6/ip6t_rt.h

index fbf4c56585547a20839aaaf334e2eb25726f7650..b56e76811c04380e9779dbe82c2cfa4a5b0c6abd 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _XT_CT_H
 #define _XT_CT_H
 
+#include <linux/types.h>
+
 #define XT_CT_NOTRACK  0x1
 
 struct xt_ct_target_info {
index 342ef14b1761017c52072f83c4ad1ef134f3b4a0..7157318499c27b3c96b0e07ae19413fcbe94a827 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _XT_TCPOPTSTRIP_H
 #define _XT_TCPOPTSTRIP_H
 
+#include <linux/types.h>
+
 #define tcpoptstrip_set_bit(bmap, idx) \
        (bmap[(idx) >> 5] |= 1U << (idx & 31))
 #define tcpoptstrip_test_bit(bmap, idx) \
index 8097e0b4c15e78f42e75df6dcae2ed1b9e9eed2e..902043c2073ff7e9d5e195e16246438410f79b1e 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _XT_TPROXY_H
 #define _XT_TPROXY_H
 
+#include <linux/types.h>
+
 /* TPROXY target is capable of marking the packet to perform
  * redirection. We can get rid of that whenever we get support for
  * mutliple targets in the same rule. */
index 66cfa3c782ac5963b4d857c0dc00bfe420b2370e..9b883c8fbf548bb34ab0e97ff48944d85a93d012 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _XT_CLUSTER_MATCH_H
 #define _XT_CLUSTER_MATCH_H
 
+#include <linux/types.h>
+
 enum xt_cluster_flags {
        XT_CLUSTER_F_INV        = (1 << 0)
 };
index ab1d3b57fff7937fb5e9926dff8609e4799d4c12..0ca66e97acbc5eda481befdda3ef13eea6119975 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _XT_CONNLIMIT_H
 #define _XT_CONNLIMIT_H
 
+#include <linux/types.h>
+
 struct xt_connlimit_data;
 
 enum {
index 8bda65f0bc92b70a1f8d069b3452f8a8f6bf85cd..ca6e03e47a17ca08bae40f4cf5a66292d4fc38ca 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _XT_QUOTA_H
 #define _XT_QUOTA_H
 
+#include <linux/types.h>
+
 enum xt_quota_flags {
        XT_QUOTA_INVERT         = 0x1,
 };
index 6f475b8ff34be81caa612bf1a947d3ad627290ab..26d7217bd4f1cf1337a7c1d5d5643801d23b4e8a 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _XT_SOCKET_H
 #define _XT_SOCKET_H
 
+#include <linux/types.h>
+
 enum {
        XT_SOCKET_TRANSPARENT = 1 << 0,
 };
index b8bd4568efdb944bfb00c817326bce333a60267a..7c37fac576c440d34c650dbc352bcceded891808 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _XT_TIME_H
 #define _XT_TIME_H 1
 
+#include <linux/types.h>
+
 struct xt_time_info {
        __u32 date_start;
        __u32 date_stop;
index e8c3d8722baef7895f426e5cd7f7e9be60a58059..04d1bfea03c2cbd9ba4a9c2575e44ef1e9766cd1 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _XT_U32_H
 #define _XT_U32_H 1
 
+#include <linux/types.h>
+
 enum xt_u32_ops {
        XT_U32_AND,
        XT_U32_LEFTSH,
index c427764f4444361990af4ea1505bfc70e01aab48..be5be1577a56e28797db0817579ac22adc22e1e9 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __LINUX_BRIDGE_EBT_802_3_H
 #define __LINUX_BRIDGE_EBT_802_3_H
 
+#include <linux/types.h>
+
 #define EBT_802_3_SAP 0x01
 #define EBT_802_3_TYPE 0x02
 
index 686c9619dbc0be5e350154d46333f2ec79270844..bd4e3ad0b7067da89fac177a4de92fb5fcf14533 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __LINUX_BRIDGE_EBT_AMONG_H
 #define __LINUX_BRIDGE_EBT_AMONG_H
 
+#include <linux/types.h>
+
 #define EBT_AMONG_DST 0x01
 #define EBT_AMONG_SRC 0x02
 
index e62b5af958693e7b42beccc06fd4cbf454baa724..522f3e427f49e7656c7c239d44b7fb71fca8daeb 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __LINUX_BRIDGE_EBT_ARP_H
 #define __LINUX_BRIDGE_EBT_ARP_H
 
+#include <linux/types.h>
+
 #define EBT_ARP_OPCODE 0x01
 #define EBT_ARP_HTYPE 0x02
 #define EBT_ARP_PTYPE 0x04
index d99de58da2c77d082af8e7c5c895a3cc15487561..c4bbc41b0ea47c576d4649262fc337f445fb0601 100644 (file)
@@ -15,6 +15,8 @@
 #ifndef __LINUX_BRIDGE_EBT_IP_H
 #define __LINUX_BRIDGE_EBT_IP_H
 
+#include <linux/types.h>
+
 #define EBT_IP_SOURCE 0x01
 #define EBT_IP_DEST 0x02
 #define EBT_IP_TOS 0x04
index 998e9d5a6b600b728a57b41bfb61683ff0b2ed6e..42b889682721783b84d03797188bc3d9fc409fad 100644 (file)
@@ -12,6 +12,8 @@
 #ifndef __LINUX_BRIDGE_EBT_IP6_H
 #define __LINUX_BRIDGE_EBT_IP6_H
 
+#include <linux/types.h>
+
 #define EBT_IP6_SOURCE 0x01
 #define EBT_IP6_DEST 0x02
 #define EBT_IP6_TCLASS 0x04
index 721d51ffa51377a82f291a0f151ffc2ff5519194..66d80b30ba0e2779b4798ec8d0affc3fa0722815 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __LINUX_BRIDGE_EBT_LIMIT_H
 #define __LINUX_BRIDGE_EBT_LIMIT_H
 
+#include <linux/types.h>
+
 #define EBT_LIMIT_MATCH "limit"
 
 /* timings are in milliseconds. */
index 564beb4946ea659f0329f0e555720e42d8131951..7e7f1d1fe4946808655c1582b76930dfdf39adb1 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __LINUX_BRIDGE_EBT_LOG_H
 #define __LINUX_BRIDGE_EBT_LOG_H
 
+#include <linux/types.h>
+
 #define EBT_LOG_IP 0x01 /* if the frame is made by ip, log the ip information */
 #define EBT_LOG_ARP 0x02
 #define EBT_LOG_NFLOG 0x04
index 97b96c4b8db461599cab17b886d2c2d8e9744853..410f9e5a71d44c44ac5592aee4420e0bdafc1976 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __LINUX_BRIDGE_EBT_MARK_M_H
 #define __LINUX_BRIDGE_EBT_MARK_M_H
 
+#include <linux/types.h>
+
 #define EBT_MARK_AND 0x01
 #define EBT_MARK_OR 0x02
 #define EBT_MARK_MASK (EBT_MARK_AND | EBT_MARK_OR)
index 477315bc3537ebaaf9566037e53eaf8dc96bbf67..df829fce9125d6f3120d7d3e1b5ad367f99c1dbb 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __LINUX_BRIDGE_EBT_NFLOG_H
 #define __LINUX_BRIDGE_EBT_NFLOG_H
 
+#include <linux/types.h>
+
 #define EBT_NFLOG_MASK 0x0
 
 #define EBT_NFLOG_PREFIX_SIZE 64
index 7c0fb0fdcf14f19f27901dc4c3c3ea27a455feda..c241badcd036a3b403e7e15abc7c010d3a546cbd 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __LINUX_BRIDGE_EBT_PKTTYPE_H
 #define __LINUX_BRIDGE_EBT_PKTTYPE_H
 
+#include <linux/types.h>
+
 struct ebt_pkttype_info {
        __u8 pkt_type;
        __u8 invert;
index 13a0bd49a92a3b43f417bf3f1e14d596a59d38c7..1025b9f5fb7ddd2657de1b28866f898a0a19bab7 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __LINUX_BRIDGE_EBT_STP_H
 #define __LINUX_BRIDGE_EBT_STP_H
 
+#include <linux/types.h>
+
 #define EBT_STP_TYPE           0x0001
 
 #define EBT_STP_FLAGS          0x0002
index de35a51a7e460e4885f19e4c3893e4ff6171aa92..89a6becb526932d2c2f067d7155b15edefd43102 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _EBT_ULOG_H
 #define _EBT_ULOG_H
 
+#include <linux/types.h>
+
 #define EBT_ULOG_DEFAULT_NLGROUP 0
 #define EBT_ULOG_DEFAULT_QTHRESHOLD 1
 #define EBT_ULOG_MAXNLGROUPS 32 /* hardcoded netlink max */
index 48dffc1dad36f3f674df09e62ee36bde4ca640bf..967d1d5cf98d81e88413f0d9dc2f6a1ecdeeff16 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __LINUX_BRIDGE_EBT_VLAN_H
 #define __LINUX_BRIDGE_EBT_VLAN_H
 
+#include <linux/types.h>
+
 #define EBT_VLAN_ID    0x01
 #define EBT_VLAN_PRIO  0x02
 #define EBT_VLAN_ENCAP 0x04
index 3114f06939ef333db9ba5cae7410fbdbd6245f48..c6a204c97047a671bed64f03230064ef9e174175 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _IPT_CLUSTERIP_H_target
 #define _IPT_CLUSTERIP_H_target
 
+#include <linux/types.h>
+
 enum clusterip_hashmode {
     CLUSTERIP_HASHMODE_SIP = 0,
     CLUSTERIP_HASHMODE_SIP_SPT,
index c6e3e01b75e0e02b4048385ed51d04886a74cacc..bb88d5315a4dd7bdd793b2b165a153143fcb19b3 100644 (file)
@@ -8,6 +8,8 @@
 */
 #ifndef _IPT_ECN_TARGET_H
 #define _IPT_ECN_TARGET_H
+
+#include <linux/types.h>
 #include <linux/netfilter/xt_DSCP.h>
 
 #define IPT_ECN_IP_MASK        (~XT_DSCP_MASK)
index fa0ebeca5d95930101adc5cbb7b9b5f8a6f1c64d..5bca78267afddf0275a59368ec7db35d31b6c6b6 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _IPT_SAME_H
 #define _IPT_SAME_H
 
+#include <linux/types.h>
+
 #define IPT_SAME_MAX_RANGE     10
 
 #define IPT_SAME_NODST         0x01
index f6250e422d5ea107bb00d6671b0bc44912554ceb..f6ac169d92f9bbc6751a930ef0ed64d752dd4542 100644 (file)
@@ -4,6 +4,8 @@
 #ifndef _IPT_TTL_H
 #define _IPT_TTL_H
 
+#include <linux/types.h>
+
 enum {
        IPT_TTL_SET = 0,
        IPT_TTL_INC,
index f29c3cfcc24046922e64342887974b8b5fe4eb21..0da42237c8da971d2c94b0c0fc39b4a415e6f8be 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _IPT_ADDRTYPE_H
 #define _IPT_ADDRTYPE_H
 
+#include <linux/types.h>
+
 enum {
        IPT_ADDRTYPE_INVERT_SOURCE      = 0x0001,
        IPT_ADDRTYPE_INVERT_DEST        = 0x0002,
index 8fea283ee62a7739c59ab0eeee5cad5f0a49e20a..4e02bb0119e3c131575118b6f0cf0d868f7de722 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _IPT_AH_H
 #define _IPT_AH_H
 
+#include <linux/types.h>
+
 struct ipt_ah {
        __u32 spis[2];                  /* Security Parameter Index */
        __u8  invflags;                 /* Inverse flags */
index 78b98aa8784ddc0e4cdace97b8b7a269b9d75660..eabf95fb7d3e030c17a2f078ce8621e67d54b38a 100644 (file)
@@ -8,6 +8,8 @@
 */
 #ifndef _IPT_ECN_H
 #define _IPT_ECN_H
+
+#include <linux/types.h>
 #include <linux/netfilter/xt_dscp.h>
 
 #define IPT_ECN_IP_MASK        (~XT_DSCP_MASK)
index 93d9a06689a34dcb1fe3b1880e48026dd8bbf82c..37bee44424860f19e801f1d431b93c9facf3e1cf 100644 (file)
@@ -4,6 +4,8 @@
 #ifndef _IPT_TTL_H
 #define _IPT_TTL_H
 
+#include <linux/types.h>
+
 enum {
        IPT_TTL_EQ = 0,         /* equals */
        IPT_TTL_NE,             /* not equals */
index 81cdaf0480e3fe5a8a19dafe8845e16ce01df570..ebd8ead1bb63e52a81fc73eb847fbb9cf5861273 100644 (file)
@@ -5,6 +5,8 @@
 #ifndef _IP6T_HL_H
 #define _IP6T_HL_H
 
+#include <linux/types.h>
+
 enum {
        IP6T_HL_SET = 0,
        IP6T_HL_INC,
index b999aa4e5969f393781cda400db9d18931ec8ff4..205ed62e4605dbf3d1ce080ec721b919829af50f 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _IP6T_REJECT_H
 #define _IP6T_REJECT_H
 
+#include <linux/types.h>
+
 enum ip6t_reject_with {
        IP6T_ICMP6_NO_ROUTE,
        IP6T_ICMP6_ADM_PROHIBITED,
index a602c165edd1055158616c4df187aed7329be677..5da2b65cb3ade90c6ab2c515b86277812ec20a66 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _IP6T_AH_H
 #define _IP6T_AH_H
 
+#include <linux/types.h>
+
 struct ip6t_ah {
        __u32 spis[2];                  /* Security Parameter Index */
        __u32 hdrlen;                   /* Header Length */
index 538b31ef5e3de83dd967d7a42acd48f7b4cd05f2..b47f61b9e082f1281023076577fa2e182aa2b616 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _IP6T_FRAG_H
 #define _IP6T_FRAG_H
 
+#include <linux/types.h>
+
 struct ip6t_frag {
        __u32 ids[2];                   /* Security Parameter Index */
        __u32 hdrlen;                   /* Header Length */
index c6fddcb971da03e19539abbe1e633e7e3c5a0a5e..6e76dbc6c19aa0c7f0d15205535501f0035acdcb 100644 (file)
@@ -5,6 +5,8 @@
 #ifndef _IP6T_HL_H
 #define _IP6T_HL_H
 
+#include <linux/types.h>
+
 enum {
        IP6T_HL_EQ = 0,         /* equals */
        IP6T_HL_NE,             /* not equals */
index 73d53bd3ff623ed54657d44f65ca79c7d219b40a..efae3a20c2141f9212dcfb37539efdb0f090e599 100644 (file)
@@ -8,6 +8,8 @@ on whether they contain certain headers */
 #ifndef __IPV6HEADER_H
 #define __IPV6HEADER_H
 
+#include <linux/types.h>
+
 struct ip6t_ipv6header_info {
        __u8 matchflags;
        __u8 invflags;
index 98c8cf685eea19f2dddc9d3ff66d43d51dc06c55..a7729a5025cd08a7fee0da40169e5d1d451b1f34 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _IP6T_MH_H
 #define _IP6T_MH_H
 
+#include <linux/types.h>
+
 /* MH matching stuff */
 struct ip6t_mh {
        __u8 types[2];  /* MH type range */
index 405d309cd7411e7894ac639dac3bc90806b76da2..17d419a811fdfef99678bf12d9bc060fccb7192b 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _IP6T_OPTS_H
 #define _IP6T_OPTS_H
 
+#include <linux/types.h>
+
 #define IP6T_OPTS_OPTSNR 16
 
 struct ip6t_opts {
index e8dad20acd3701bdd26a072595bb0dbd9a3e26d4..7605a5ff81cd6560c10b60daf91ab889e4843b9d 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _IP6T_RT_H
 #define _IP6T_RT_H
 
+#include <linux/types.h>
 /*#include <linux/in6.h>*/
 
 #define IP6T_RT_HOPS 16