netfilter: xtables: add missing header inclusions for headers_check

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>
This commit is contained in:
Jan Engelhardt 2011-01-20 17:50:17 +01:00
parent 41a7cab6d3
commit 06988b0693
39 changed files with 77 additions and 0 deletions

View File

@ -1,6 +1,8 @@
#ifndef _XT_CT_H #ifndef _XT_CT_H
#define _XT_CT_H #define _XT_CT_H
#include <linux/types.h>
#define XT_CT_NOTRACK 0x1 #define XT_CT_NOTRACK 0x1
struct xt_ct_target_info { struct xt_ct_target_info {

View File

@ -1,6 +1,8 @@
#ifndef _XT_TCPOPTSTRIP_H #ifndef _XT_TCPOPTSTRIP_H
#define _XT_TCPOPTSTRIP_H #define _XT_TCPOPTSTRIP_H
#include <linux/types.h>
#define tcpoptstrip_set_bit(bmap, idx) \ #define tcpoptstrip_set_bit(bmap, idx) \
(bmap[(idx) >> 5] |= 1U << (idx & 31)) (bmap[(idx) >> 5] |= 1U << (idx & 31))
#define tcpoptstrip_test_bit(bmap, idx) \ #define tcpoptstrip_test_bit(bmap, idx) \

View File

@ -1,6 +1,8 @@
#ifndef _XT_TPROXY_H #ifndef _XT_TPROXY_H
#define _XT_TPROXY_H #define _XT_TPROXY_H
#include <linux/types.h>
/* TPROXY target is capable of marking the packet to perform /* TPROXY target is capable of marking the packet to perform
* redirection. We can get rid of that whenever we get support for * redirection. We can get rid of that whenever we get support for
* mutliple targets in the same rule. */ * mutliple targets in the same rule. */

View File

@ -1,6 +1,8 @@
#ifndef _XT_CLUSTER_MATCH_H #ifndef _XT_CLUSTER_MATCH_H
#define _XT_CLUSTER_MATCH_H #define _XT_CLUSTER_MATCH_H
#include <linux/types.h>
enum xt_cluster_flags { enum xt_cluster_flags {
XT_CLUSTER_F_INV = (1 << 0) XT_CLUSTER_F_INV = (1 << 0)
}; };

View File

@ -1,6 +1,8 @@
#ifndef _XT_CONNLIMIT_H #ifndef _XT_CONNLIMIT_H
#define _XT_CONNLIMIT_H #define _XT_CONNLIMIT_H
#include <linux/types.h>
struct xt_connlimit_data; struct xt_connlimit_data;
enum { enum {

View File

@ -1,6 +1,8 @@
#ifndef _XT_QUOTA_H #ifndef _XT_QUOTA_H
#define _XT_QUOTA_H #define _XT_QUOTA_H
#include <linux/types.h>
enum xt_quota_flags { enum xt_quota_flags {
XT_QUOTA_INVERT = 0x1, XT_QUOTA_INVERT = 0x1,
}; };

View File

@ -1,6 +1,8 @@
#ifndef _XT_SOCKET_H #ifndef _XT_SOCKET_H
#define _XT_SOCKET_H #define _XT_SOCKET_H
#include <linux/types.h>
enum { enum {
XT_SOCKET_TRANSPARENT = 1 << 0, XT_SOCKET_TRANSPARENT = 1 << 0,
}; };

View File

@ -1,6 +1,8 @@
#ifndef _XT_TIME_H #ifndef _XT_TIME_H
#define _XT_TIME_H 1 #define _XT_TIME_H 1
#include <linux/types.h>
struct xt_time_info { struct xt_time_info {
__u32 date_start; __u32 date_start;
__u32 date_stop; __u32 date_stop;

View File

@ -1,6 +1,8 @@
#ifndef _XT_U32_H #ifndef _XT_U32_H
#define _XT_U32_H 1 #define _XT_U32_H 1
#include <linux/types.h>
enum xt_u32_ops { enum xt_u32_ops {
XT_U32_AND, XT_U32_AND,
XT_U32_LEFTSH, XT_U32_LEFTSH,

View File

@ -1,6 +1,8 @@
#ifndef __LINUX_BRIDGE_EBT_802_3_H #ifndef __LINUX_BRIDGE_EBT_802_3_H
#define __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_SAP 0x01
#define EBT_802_3_TYPE 0x02 #define EBT_802_3_TYPE 0x02

View File

@ -1,6 +1,8 @@
#ifndef __LINUX_BRIDGE_EBT_AMONG_H #ifndef __LINUX_BRIDGE_EBT_AMONG_H
#define __LINUX_BRIDGE_EBT_AMONG_H #define __LINUX_BRIDGE_EBT_AMONG_H
#include <linux/types.h>
#define EBT_AMONG_DST 0x01 #define EBT_AMONG_DST 0x01
#define EBT_AMONG_SRC 0x02 #define EBT_AMONG_SRC 0x02

View File

@ -1,6 +1,8 @@
#ifndef __LINUX_BRIDGE_EBT_ARP_H #ifndef __LINUX_BRIDGE_EBT_ARP_H
#define __LINUX_BRIDGE_EBT_ARP_H #define __LINUX_BRIDGE_EBT_ARP_H
#include <linux/types.h>
#define EBT_ARP_OPCODE 0x01 #define EBT_ARP_OPCODE 0x01
#define EBT_ARP_HTYPE 0x02 #define EBT_ARP_HTYPE 0x02
#define EBT_ARP_PTYPE 0x04 #define EBT_ARP_PTYPE 0x04

View File

@ -15,6 +15,8 @@
#ifndef __LINUX_BRIDGE_EBT_IP_H #ifndef __LINUX_BRIDGE_EBT_IP_H
#define __LINUX_BRIDGE_EBT_IP_H #define __LINUX_BRIDGE_EBT_IP_H
#include <linux/types.h>
#define EBT_IP_SOURCE 0x01 #define EBT_IP_SOURCE 0x01
#define EBT_IP_DEST 0x02 #define EBT_IP_DEST 0x02
#define EBT_IP_TOS 0x04 #define EBT_IP_TOS 0x04

View File

@ -12,6 +12,8 @@
#ifndef __LINUX_BRIDGE_EBT_IP6_H #ifndef __LINUX_BRIDGE_EBT_IP6_H
#define __LINUX_BRIDGE_EBT_IP6_H #define __LINUX_BRIDGE_EBT_IP6_H
#include <linux/types.h>
#define EBT_IP6_SOURCE 0x01 #define EBT_IP6_SOURCE 0x01
#define EBT_IP6_DEST 0x02 #define EBT_IP6_DEST 0x02
#define EBT_IP6_TCLASS 0x04 #define EBT_IP6_TCLASS 0x04

View File

@ -1,6 +1,8 @@
#ifndef __LINUX_BRIDGE_EBT_LIMIT_H #ifndef __LINUX_BRIDGE_EBT_LIMIT_H
#define __LINUX_BRIDGE_EBT_LIMIT_H #define __LINUX_BRIDGE_EBT_LIMIT_H
#include <linux/types.h>
#define EBT_LIMIT_MATCH "limit" #define EBT_LIMIT_MATCH "limit"
/* timings are in milliseconds. */ /* timings are in milliseconds. */

View File

@ -1,6 +1,8 @@
#ifndef __LINUX_BRIDGE_EBT_LOG_H #ifndef __LINUX_BRIDGE_EBT_LOG_H
#define __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_IP 0x01 /* if the frame is made by ip, log the ip information */
#define EBT_LOG_ARP 0x02 #define EBT_LOG_ARP 0x02
#define EBT_LOG_NFLOG 0x04 #define EBT_LOG_NFLOG 0x04

View File

@ -1,6 +1,8 @@
#ifndef __LINUX_BRIDGE_EBT_MARK_M_H #ifndef __LINUX_BRIDGE_EBT_MARK_M_H
#define __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_AND 0x01
#define EBT_MARK_OR 0x02 #define EBT_MARK_OR 0x02
#define EBT_MARK_MASK (EBT_MARK_AND | EBT_MARK_OR) #define EBT_MARK_MASK (EBT_MARK_AND | EBT_MARK_OR)

View File

@ -1,6 +1,8 @@
#ifndef __LINUX_BRIDGE_EBT_NFLOG_H #ifndef __LINUX_BRIDGE_EBT_NFLOG_H
#define __LINUX_BRIDGE_EBT_NFLOG_H #define __LINUX_BRIDGE_EBT_NFLOG_H
#include <linux/types.h>
#define EBT_NFLOG_MASK 0x0 #define EBT_NFLOG_MASK 0x0
#define EBT_NFLOG_PREFIX_SIZE 64 #define EBT_NFLOG_PREFIX_SIZE 64

View File

@ -1,6 +1,8 @@
#ifndef __LINUX_BRIDGE_EBT_PKTTYPE_H #ifndef __LINUX_BRIDGE_EBT_PKTTYPE_H
#define __LINUX_BRIDGE_EBT_PKTTYPE_H #define __LINUX_BRIDGE_EBT_PKTTYPE_H
#include <linux/types.h>
struct ebt_pkttype_info { struct ebt_pkttype_info {
__u8 pkt_type; __u8 pkt_type;
__u8 invert; __u8 invert;

View File

@ -1,6 +1,8 @@
#ifndef __LINUX_BRIDGE_EBT_STP_H #ifndef __LINUX_BRIDGE_EBT_STP_H
#define __LINUX_BRIDGE_EBT_STP_H #define __LINUX_BRIDGE_EBT_STP_H
#include <linux/types.h>
#define EBT_STP_TYPE 0x0001 #define EBT_STP_TYPE 0x0001
#define EBT_STP_FLAGS 0x0002 #define EBT_STP_FLAGS 0x0002

View File

@ -1,6 +1,8 @@
#ifndef _EBT_ULOG_H #ifndef _EBT_ULOG_H
#define _EBT_ULOG_H #define _EBT_ULOG_H
#include <linux/types.h>
#define EBT_ULOG_DEFAULT_NLGROUP 0 #define EBT_ULOG_DEFAULT_NLGROUP 0
#define EBT_ULOG_DEFAULT_QTHRESHOLD 1 #define EBT_ULOG_DEFAULT_QTHRESHOLD 1
#define EBT_ULOG_MAXNLGROUPS 32 /* hardcoded netlink max */ #define EBT_ULOG_MAXNLGROUPS 32 /* hardcoded netlink max */

View File

@ -1,6 +1,8 @@
#ifndef __LINUX_BRIDGE_EBT_VLAN_H #ifndef __LINUX_BRIDGE_EBT_VLAN_H
#define __LINUX_BRIDGE_EBT_VLAN_H #define __LINUX_BRIDGE_EBT_VLAN_H
#include <linux/types.h>
#define EBT_VLAN_ID 0x01 #define EBT_VLAN_ID 0x01
#define EBT_VLAN_PRIO 0x02 #define EBT_VLAN_PRIO 0x02
#define EBT_VLAN_ENCAP 0x04 #define EBT_VLAN_ENCAP 0x04

View File

@ -1,6 +1,8 @@
#ifndef _IPT_CLUSTERIP_H_target #ifndef _IPT_CLUSTERIP_H_target
#define _IPT_CLUSTERIP_H_target #define _IPT_CLUSTERIP_H_target
#include <linux/types.h>
enum clusterip_hashmode { enum clusterip_hashmode {
CLUSTERIP_HASHMODE_SIP = 0, CLUSTERIP_HASHMODE_SIP = 0,
CLUSTERIP_HASHMODE_SIP_SPT, CLUSTERIP_HASHMODE_SIP_SPT,

View File

@ -8,6 +8,8 @@
*/ */
#ifndef _IPT_ECN_TARGET_H #ifndef _IPT_ECN_TARGET_H
#define _IPT_ECN_TARGET_H #define _IPT_ECN_TARGET_H
#include <linux/types.h>
#include <linux/netfilter/xt_DSCP.h> #include <linux/netfilter/xt_DSCP.h>
#define IPT_ECN_IP_MASK (~XT_DSCP_MASK) #define IPT_ECN_IP_MASK (~XT_DSCP_MASK)

View File

@ -1,6 +1,8 @@
#ifndef _IPT_SAME_H #ifndef _IPT_SAME_H
#define _IPT_SAME_H #define _IPT_SAME_H
#include <linux/types.h>
#define IPT_SAME_MAX_RANGE 10 #define IPT_SAME_MAX_RANGE 10
#define IPT_SAME_NODST 0x01 #define IPT_SAME_NODST 0x01

View File

@ -4,6 +4,8 @@
#ifndef _IPT_TTL_H #ifndef _IPT_TTL_H
#define _IPT_TTL_H #define _IPT_TTL_H
#include <linux/types.h>
enum { enum {
IPT_TTL_SET = 0, IPT_TTL_SET = 0,
IPT_TTL_INC, IPT_TTL_INC,

View File

@ -1,6 +1,8 @@
#ifndef _IPT_ADDRTYPE_H #ifndef _IPT_ADDRTYPE_H
#define _IPT_ADDRTYPE_H #define _IPT_ADDRTYPE_H
#include <linux/types.h>
enum { enum {
IPT_ADDRTYPE_INVERT_SOURCE = 0x0001, IPT_ADDRTYPE_INVERT_SOURCE = 0x0001,
IPT_ADDRTYPE_INVERT_DEST = 0x0002, IPT_ADDRTYPE_INVERT_DEST = 0x0002,

View File

@ -1,6 +1,8 @@
#ifndef _IPT_AH_H #ifndef _IPT_AH_H
#define _IPT_AH_H #define _IPT_AH_H
#include <linux/types.h>
struct ipt_ah { struct ipt_ah {
__u32 spis[2]; /* Security Parameter Index */ __u32 spis[2]; /* Security Parameter Index */
__u8 invflags; /* Inverse flags */ __u8 invflags; /* Inverse flags */

View File

@ -8,6 +8,8 @@
*/ */
#ifndef _IPT_ECN_H #ifndef _IPT_ECN_H
#define _IPT_ECN_H #define _IPT_ECN_H
#include <linux/types.h>
#include <linux/netfilter/xt_dscp.h> #include <linux/netfilter/xt_dscp.h>
#define IPT_ECN_IP_MASK (~XT_DSCP_MASK) #define IPT_ECN_IP_MASK (~XT_DSCP_MASK)

View File

@ -4,6 +4,8 @@
#ifndef _IPT_TTL_H #ifndef _IPT_TTL_H
#define _IPT_TTL_H #define _IPT_TTL_H
#include <linux/types.h>
enum { enum {
IPT_TTL_EQ = 0, /* equals */ IPT_TTL_EQ = 0, /* equals */
IPT_TTL_NE, /* not equals */ IPT_TTL_NE, /* not equals */

View File

@ -5,6 +5,8 @@
#ifndef _IP6T_HL_H #ifndef _IP6T_HL_H
#define _IP6T_HL_H #define _IP6T_HL_H
#include <linux/types.h>
enum { enum {
IP6T_HL_SET = 0, IP6T_HL_SET = 0,
IP6T_HL_INC, IP6T_HL_INC,

View File

@ -1,6 +1,8 @@
#ifndef _IP6T_REJECT_H #ifndef _IP6T_REJECT_H
#define _IP6T_REJECT_H #define _IP6T_REJECT_H
#include <linux/types.h>
enum ip6t_reject_with { enum ip6t_reject_with {
IP6T_ICMP6_NO_ROUTE, IP6T_ICMP6_NO_ROUTE,
IP6T_ICMP6_ADM_PROHIBITED, IP6T_ICMP6_ADM_PROHIBITED,

View File

@ -1,6 +1,8 @@
#ifndef _IP6T_AH_H #ifndef _IP6T_AH_H
#define _IP6T_AH_H #define _IP6T_AH_H
#include <linux/types.h>
struct ip6t_ah { struct ip6t_ah {
__u32 spis[2]; /* Security Parameter Index */ __u32 spis[2]; /* Security Parameter Index */
__u32 hdrlen; /* Header Length */ __u32 hdrlen; /* Header Length */

View File

@ -1,6 +1,8 @@
#ifndef _IP6T_FRAG_H #ifndef _IP6T_FRAG_H
#define _IP6T_FRAG_H #define _IP6T_FRAG_H
#include <linux/types.h>
struct ip6t_frag { struct ip6t_frag {
__u32 ids[2]; /* Security Parameter Index */ __u32 ids[2]; /* Security Parameter Index */
__u32 hdrlen; /* Header Length */ __u32 hdrlen; /* Header Length */

View File

@ -5,6 +5,8 @@
#ifndef _IP6T_HL_H #ifndef _IP6T_HL_H
#define _IP6T_HL_H #define _IP6T_HL_H
#include <linux/types.h>
enum { enum {
IP6T_HL_EQ = 0, /* equals */ IP6T_HL_EQ = 0, /* equals */
IP6T_HL_NE, /* not equals */ IP6T_HL_NE, /* not equals */

View File

@ -8,6 +8,8 @@ on whether they contain certain headers */
#ifndef __IPV6HEADER_H #ifndef __IPV6HEADER_H
#define __IPV6HEADER_H #define __IPV6HEADER_H
#include <linux/types.h>
struct ip6t_ipv6header_info { struct ip6t_ipv6header_info {
__u8 matchflags; __u8 matchflags;
__u8 invflags; __u8 invflags;

View File

@ -1,6 +1,8 @@
#ifndef _IP6T_MH_H #ifndef _IP6T_MH_H
#define _IP6T_MH_H #define _IP6T_MH_H
#include <linux/types.h>
/* MH matching stuff */ /* MH matching stuff */
struct ip6t_mh { struct ip6t_mh {
__u8 types[2]; /* MH type range */ __u8 types[2]; /* MH type range */

View File

@ -1,6 +1,8 @@
#ifndef _IP6T_OPTS_H #ifndef _IP6T_OPTS_H
#define _IP6T_OPTS_H #define _IP6T_OPTS_H
#include <linux/types.h>
#define IP6T_OPTS_OPTSNR 16 #define IP6T_OPTS_OPTSNR 16
struct ip6t_opts { struct ip6t_opts {

View File

@ -1,6 +1,7 @@
#ifndef _IP6T_RT_H #ifndef _IP6T_RT_H
#define _IP6T_RT_H #define _IP6T_RT_H
#include <linux/types.h>
/*#include <linux/in6.h>*/ /*#include <linux/in6.h>*/
#define IP6T_RT_HOPS 16 #define IP6T_RT_HOPS 16