Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+77
+2
include/linux/netfilter/xt_CT.h
··· 1 1 #ifndef _XT_CT_H 2 2 #define _XT_CT_H 3 3 4 + #include <linux/types.h> 5 + 4 6 #define XT_CT_NOTRACK 0x1 5 7 6 8 struct xt_ct_target_info {
+2
include/linux/netfilter/xt_TCPOPTSTRIP.h
··· 1 1 #ifndef _XT_TCPOPTSTRIP_H 2 2 #define _XT_TCPOPTSTRIP_H 3 3 4 + #include <linux/types.h> 5 + 4 6 #define tcpoptstrip_set_bit(bmap, idx) \ 5 7 (bmap[(idx) >> 5] |= 1U << (idx & 31)) 6 8 #define tcpoptstrip_test_bit(bmap, idx) \
+2
include/linux/netfilter/xt_TPROXY.h
··· 1 1 #ifndef _XT_TPROXY_H 2 2 #define _XT_TPROXY_H 3 3 4 + #include <linux/types.h> 5 + 4 6 /* TPROXY target is capable of marking the packet to perform 5 7 * redirection. We can get rid of that whenever we get support for 6 8 * mutliple targets in the same rule. */
+2
include/linux/netfilter/xt_cluster.h
··· 1 1 #ifndef _XT_CLUSTER_MATCH_H 2 2 #define _XT_CLUSTER_MATCH_H 3 3 4 + #include <linux/types.h> 5 + 4 6 enum xt_cluster_flags { 5 7 XT_CLUSTER_F_INV = (1 << 0) 6 8 };
+2
include/linux/netfilter/xt_connlimit.h
··· 1 1 #ifndef _XT_CONNLIMIT_H 2 2 #define _XT_CONNLIMIT_H 3 3 4 + #include <linux/types.h> 5 + 4 6 struct xt_connlimit_data; 5 7 6 8 enum {
+2
include/linux/netfilter/xt_quota.h
··· 1 1 #ifndef _XT_QUOTA_H 2 2 #define _XT_QUOTA_H 3 3 4 + #include <linux/types.h> 5 + 4 6 enum xt_quota_flags { 5 7 XT_QUOTA_INVERT = 0x1, 6 8 };
+2
include/linux/netfilter/xt_socket.h
··· 1 1 #ifndef _XT_SOCKET_H 2 2 #define _XT_SOCKET_H 3 3 4 + #include <linux/types.h> 5 + 4 6 enum { 5 7 XT_SOCKET_TRANSPARENT = 1 << 0, 6 8 };
+2
include/linux/netfilter/xt_time.h
··· 1 1 #ifndef _XT_TIME_H 2 2 #define _XT_TIME_H 1 3 3 4 + #include <linux/types.h> 5 + 4 6 struct xt_time_info { 5 7 __u32 date_start; 6 8 __u32 date_stop;
+2
include/linux/netfilter/xt_u32.h
··· 1 1 #ifndef _XT_U32_H 2 2 #define _XT_U32_H 1 3 3 4 + #include <linux/types.h> 5 + 4 6 enum xt_u32_ops { 5 7 XT_U32_AND, 6 8 XT_U32_LEFTSH,
+2
include/linux/netfilter_bridge/ebt_802_3.h
··· 1 1 #ifndef __LINUX_BRIDGE_EBT_802_3_H 2 2 #define __LINUX_BRIDGE_EBT_802_3_H 3 3 4 + #include <linux/types.h> 5 + 4 6 #define EBT_802_3_SAP 0x01 5 7 #define EBT_802_3_TYPE 0x02 6 8
+2
include/linux/netfilter_bridge/ebt_among.h
··· 1 1 #ifndef __LINUX_BRIDGE_EBT_AMONG_H 2 2 #define __LINUX_BRIDGE_EBT_AMONG_H 3 3 4 + #include <linux/types.h> 5 + 4 6 #define EBT_AMONG_DST 0x01 5 7 #define EBT_AMONG_SRC 0x02 6 8
+2
include/linux/netfilter_bridge/ebt_arp.h
··· 1 1 #ifndef __LINUX_BRIDGE_EBT_ARP_H 2 2 #define __LINUX_BRIDGE_EBT_ARP_H 3 3 4 + #include <linux/types.h> 5 + 4 6 #define EBT_ARP_OPCODE 0x01 5 7 #define EBT_ARP_HTYPE 0x02 6 8 #define EBT_ARP_PTYPE 0x04
+2
include/linux/netfilter_bridge/ebt_ip.h
··· 15 15 #ifndef __LINUX_BRIDGE_EBT_IP_H 16 16 #define __LINUX_BRIDGE_EBT_IP_H 17 17 18 + #include <linux/types.h> 19 + 18 20 #define EBT_IP_SOURCE 0x01 19 21 #define EBT_IP_DEST 0x02 20 22 #define EBT_IP_TOS 0x04
+2
include/linux/netfilter_bridge/ebt_ip6.h
··· 12 12 #ifndef __LINUX_BRIDGE_EBT_IP6_H 13 13 #define __LINUX_BRIDGE_EBT_IP6_H 14 14 15 + #include <linux/types.h> 16 + 15 17 #define EBT_IP6_SOURCE 0x01 16 18 #define EBT_IP6_DEST 0x02 17 19 #define EBT_IP6_TCLASS 0x04
+2
include/linux/netfilter_bridge/ebt_limit.h
··· 1 1 #ifndef __LINUX_BRIDGE_EBT_LIMIT_H 2 2 #define __LINUX_BRIDGE_EBT_LIMIT_H 3 3 4 + #include <linux/types.h> 5 + 4 6 #define EBT_LIMIT_MATCH "limit" 5 7 6 8 /* timings are in milliseconds. */
+2
include/linux/netfilter_bridge/ebt_log.h
··· 1 1 #ifndef __LINUX_BRIDGE_EBT_LOG_H 2 2 #define __LINUX_BRIDGE_EBT_LOG_H 3 3 4 + #include <linux/types.h> 5 + 4 6 #define EBT_LOG_IP 0x01 /* if the frame is made by ip, log the ip information */ 5 7 #define EBT_LOG_ARP 0x02 6 8 #define EBT_LOG_NFLOG 0x04
+2
include/linux/netfilter_bridge/ebt_mark_m.h
··· 1 1 #ifndef __LINUX_BRIDGE_EBT_MARK_M_H 2 2 #define __LINUX_BRIDGE_EBT_MARK_M_H 3 3 4 + #include <linux/types.h> 5 + 4 6 #define EBT_MARK_AND 0x01 5 7 #define EBT_MARK_OR 0x02 6 8 #define EBT_MARK_MASK (EBT_MARK_AND | EBT_MARK_OR)
+2
include/linux/netfilter_bridge/ebt_nflog.h
··· 1 1 #ifndef __LINUX_BRIDGE_EBT_NFLOG_H 2 2 #define __LINUX_BRIDGE_EBT_NFLOG_H 3 3 4 + #include <linux/types.h> 5 + 4 6 #define EBT_NFLOG_MASK 0x0 5 7 6 8 #define EBT_NFLOG_PREFIX_SIZE 64
+2
include/linux/netfilter_bridge/ebt_pkttype.h
··· 1 1 #ifndef __LINUX_BRIDGE_EBT_PKTTYPE_H 2 2 #define __LINUX_BRIDGE_EBT_PKTTYPE_H 3 3 4 + #include <linux/types.h> 5 + 4 6 struct ebt_pkttype_info { 5 7 __u8 pkt_type; 6 8 __u8 invert;
+2
include/linux/netfilter_bridge/ebt_stp.h
··· 1 1 #ifndef __LINUX_BRIDGE_EBT_STP_H 2 2 #define __LINUX_BRIDGE_EBT_STP_H 3 3 4 + #include <linux/types.h> 5 + 4 6 #define EBT_STP_TYPE 0x0001 5 7 6 8 #define EBT_STP_FLAGS 0x0002
+2
include/linux/netfilter_bridge/ebt_ulog.h
··· 1 1 #ifndef _EBT_ULOG_H 2 2 #define _EBT_ULOG_H 3 3 4 + #include <linux/types.h> 5 + 4 6 #define EBT_ULOG_DEFAULT_NLGROUP 0 5 7 #define EBT_ULOG_DEFAULT_QTHRESHOLD 1 6 8 #define EBT_ULOG_MAXNLGROUPS 32 /* hardcoded netlink max */
+2
include/linux/netfilter_bridge/ebt_vlan.h
··· 1 1 #ifndef __LINUX_BRIDGE_EBT_VLAN_H 2 2 #define __LINUX_BRIDGE_EBT_VLAN_H 3 3 4 + #include <linux/types.h> 5 + 4 6 #define EBT_VLAN_ID 0x01 5 7 #define EBT_VLAN_PRIO 0x02 6 8 #define EBT_VLAN_ENCAP 0x04
+2
include/linux/netfilter_ipv4/ipt_CLUSTERIP.h
··· 1 1 #ifndef _IPT_CLUSTERIP_H_target 2 2 #define _IPT_CLUSTERIP_H_target 3 3 4 + #include <linux/types.h> 5 + 4 6 enum clusterip_hashmode { 5 7 CLUSTERIP_HASHMODE_SIP = 0, 6 8 CLUSTERIP_HASHMODE_SIP_SPT,
+2
include/linux/netfilter_ipv4/ipt_ECN.h
··· 8 8 */ 9 9 #ifndef _IPT_ECN_TARGET_H 10 10 #define _IPT_ECN_TARGET_H 11 + 12 + #include <linux/types.h> 11 13 #include <linux/netfilter/xt_DSCP.h> 12 14 13 15 #define IPT_ECN_IP_MASK (~XT_DSCP_MASK)
+2
include/linux/netfilter_ipv4/ipt_SAME.h
··· 1 1 #ifndef _IPT_SAME_H 2 2 #define _IPT_SAME_H 3 3 4 + #include <linux/types.h> 5 + 4 6 #define IPT_SAME_MAX_RANGE 10 5 7 6 8 #define IPT_SAME_NODST 0x01
+2
include/linux/netfilter_ipv4/ipt_TTL.h
··· 4 4 #ifndef _IPT_TTL_H 5 5 #define _IPT_TTL_H 6 6 7 + #include <linux/types.h> 8 + 7 9 enum { 8 10 IPT_TTL_SET = 0, 9 11 IPT_TTL_INC,
+2
include/linux/netfilter_ipv4/ipt_addrtype.h
··· 1 1 #ifndef _IPT_ADDRTYPE_H 2 2 #define _IPT_ADDRTYPE_H 3 3 4 + #include <linux/types.h> 5 + 4 6 enum { 5 7 IPT_ADDRTYPE_INVERT_SOURCE = 0x0001, 6 8 IPT_ADDRTYPE_INVERT_DEST = 0x0002,
+2
include/linux/netfilter_ipv4/ipt_ah.h
··· 1 1 #ifndef _IPT_AH_H 2 2 #define _IPT_AH_H 3 3 4 + #include <linux/types.h> 5 + 4 6 struct ipt_ah { 5 7 __u32 spis[2]; /* Security Parameter Index */ 6 8 __u8 invflags; /* Inverse flags */
+2
include/linux/netfilter_ipv4/ipt_ecn.h
··· 8 8 */ 9 9 #ifndef _IPT_ECN_H 10 10 #define _IPT_ECN_H 11 + 12 + #include <linux/types.h> 11 13 #include <linux/netfilter/xt_dscp.h> 12 14 13 15 #define IPT_ECN_IP_MASK (~XT_DSCP_MASK)
+2
include/linux/netfilter_ipv4/ipt_ttl.h
··· 4 4 #ifndef _IPT_TTL_H 5 5 #define _IPT_TTL_H 6 6 7 + #include <linux/types.h> 8 + 7 9 enum { 8 10 IPT_TTL_EQ = 0, /* equals */ 9 11 IPT_TTL_NE, /* not equals */
+2
include/linux/netfilter_ipv6/ip6t_HL.h
··· 5 5 #ifndef _IP6T_HL_H 6 6 #define _IP6T_HL_H 7 7 8 + #include <linux/types.h> 9 + 8 10 enum { 9 11 IP6T_HL_SET = 0, 10 12 IP6T_HL_INC,
+2
include/linux/netfilter_ipv6/ip6t_REJECT.h
··· 1 1 #ifndef _IP6T_REJECT_H 2 2 #define _IP6T_REJECT_H 3 3 4 + #include <linux/types.h> 5 + 4 6 enum ip6t_reject_with { 5 7 IP6T_ICMP6_NO_ROUTE, 6 8 IP6T_ICMP6_ADM_PROHIBITED,
+2
include/linux/netfilter_ipv6/ip6t_ah.h
··· 1 1 #ifndef _IP6T_AH_H 2 2 #define _IP6T_AH_H 3 3 4 + #include <linux/types.h> 5 + 4 6 struct ip6t_ah { 5 7 __u32 spis[2]; /* Security Parameter Index */ 6 8 __u32 hdrlen; /* Header Length */
+2
include/linux/netfilter_ipv6/ip6t_frag.h
··· 1 1 #ifndef _IP6T_FRAG_H 2 2 #define _IP6T_FRAG_H 3 3 4 + #include <linux/types.h> 5 + 4 6 struct ip6t_frag { 5 7 __u32 ids[2]; /* Security Parameter Index */ 6 8 __u32 hdrlen; /* Header Length */
+2
include/linux/netfilter_ipv6/ip6t_hl.h
··· 5 5 #ifndef _IP6T_HL_H 6 6 #define _IP6T_HL_H 7 7 8 + #include <linux/types.h> 9 + 8 10 enum { 9 11 IP6T_HL_EQ = 0, /* equals */ 10 12 IP6T_HL_NE, /* not equals */
+2
include/linux/netfilter_ipv6/ip6t_ipv6header.h
··· 8 8 #ifndef __IPV6HEADER_H 9 9 #define __IPV6HEADER_H 10 10 11 + #include <linux/types.h> 12 + 11 13 struct ip6t_ipv6header_info { 12 14 __u8 matchflags; 13 15 __u8 invflags;
+2
include/linux/netfilter_ipv6/ip6t_mh.h
··· 1 1 #ifndef _IP6T_MH_H 2 2 #define _IP6T_MH_H 3 3 4 + #include <linux/types.h> 5 + 4 6 /* MH matching stuff */ 5 7 struct ip6t_mh { 6 8 __u8 types[2]; /* MH type range */
+2
include/linux/netfilter_ipv6/ip6t_opts.h
··· 1 1 #ifndef _IP6T_OPTS_H 2 2 #define _IP6T_OPTS_H 3 3 4 + #include <linux/types.h> 5 + 4 6 #define IP6T_OPTS_OPTSNR 16 5 7 6 8 struct ip6t_opts {
+1
include/linux/netfilter_ipv6/ip6t_rt.h
··· 1 1 #ifndef _IP6T_RT_H 2 2 #define _IP6T_RT_H 3 3 4 + #include <linux/types.h> 4 5 /*#include <linux/in6.h>*/ 5 6 6 7 #define IP6T_RT_HOPS 16