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

netfilter: xtables: remove redirecting header files

When IPv4 and IPv6 matches were unified approx. 3.5 years ago, they
received new header filenames (e.g. xt_CLASSIFY.h). Let's remove the
old ones now.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>

+5 -618
-3
Documentation/feature-removal-schedule.txt
··· 235 235 --------------------------- 236 236 237 237 What (Why): 238 - - "forwarding" header files like ipt_mac.h in 239 - include/linux/netfilter_ipv4/ and include/linux/netfilter_ipv6/ 240 - 241 238 - xt_recent: the old ipt_recent proc dir 242 239 (superseded by /proc/net/xt_recent) 243 240
-28
include/linux/netfilter_ipv4/Kbuild
··· 1 - header-y += ipt_CLASSIFY.h 2 1 header-y += ipt_CLUSTERIP.h 3 - header-y += ipt_CONNMARK.h 4 - header-y += ipt_DSCP.h 5 2 header-y += ipt_ECN.h 6 3 header-y += ipt_LOG.h 7 - header-y += ipt_MARK.h 8 - header-y += ipt_NFQUEUE.h 9 4 header-y += ipt_REJECT.h 10 5 header-y += ipt_SAME.h 11 - header-y += ipt_TCPMSS.h 12 6 header-y += ipt_TTL.h 13 7 header-y += ipt_ULOG.h 14 8 header-y += ipt_addrtype.h 15 9 header-y += ipt_ah.h 16 - header-y += ipt_comment.h 17 - header-y += ipt_connbytes.h 18 - header-y += ipt_connmark.h 19 - header-y += ipt_conntrack.h 20 - header-y += ipt_dccp.h 21 - header-y += ipt_dscp.h 22 10 header-y += ipt_ecn.h 23 - header-y += ipt_esp.h 24 - header-y += ipt_hashlimit.h 25 - header-y += ipt_helper.h 26 - header-y += ipt_length.h 27 - header-y += ipt_limit.h 28 - header-y += ipt_mac.h 29 - header-y += ipt_mark.h 30 - header-y += ipt_multiport.h 31 - header-y += ipt_physdev.h 32 - header-y += ipt_pkttype.h 33 - header-y += ipt_policy.h 34 11 header-y += ipt_realm.h 35 - header-y += ipt_recent.h 36 - header-y += ipt_sctp.h 37 - header-y += ipt_state.h 38 - header-y += ipt_string.h 39 - header-y += ipt_tcpmss.h 40 12 header-y += ipt_ttl.h 41 13 42 14 unifdef-y += ip_queue.h
-7
include/linux/netfilter_ipv4/ipt_CLASSIFY.h
··· 1 - #ifndef _IPT_CLASSIFY_H 2 - #define _IPT_CLASSIFY_H 3 - 4 - #include <linux/netfilter/xt_CLASSIFY.h> 5 - #define ipt_classify_target_info xt_classify_target_info 6 - 7 - #endif /*_IPT_CLASSIFY_H */
-19
include/linux/netfilter_ipv4/ipt_CONNMARK.h
··· 1 - #ifndef _IPT_CONNMARK_H_target 2 - #define _IPT_CONNMARK_H_target 3 - 4 - /* Copyright (C) 2002,2004 MARA Systems AB <http://www.marasystems.com> 5 - * by Henrik Nordstrom <hno@marasystems.com> 6 - * 7 - * This program is free software; you can redistribute it and/or modify 8 - * it under the terms of the GNU General Public License as published by 9 - * the Free Software Foundation; either version 2 of the License, or 10 - * (at your option) any later version. 11 - */ 12 - #include <linux/netfilter/xt_CONNMARK.h> 13 - #define IPT_CONNMARK_SET XT_CONNMARK_SET 14 - #define IPT_CONNMARK_SAVE XT_CONNMARK_SAVE 15 - #define IPT_CONNMARK_RESTORE XT_CONNMARK_RESTORE 16 - 17 - #define ipt_connmark_target_info xt_connmark_target_info 18 - 19 - #endif /*_IPT_CONNMARK_H_target*/
-18
include/linux/netfilter_ipv4/ipt_DSCP.h
··· 1 - /* iptables module for setting the IPv4 DSCP field 2 - * 3 - * (C) 2002 Harald Welte <laforge@gnumonks.org> 4 - * based on ipt_FTOS.c (C) 2000 by Matthew G. Marsh <mgm@paktronix.com> 5 - * This software is distributed under GNU GPL v2, 1991 6 - * 7 - * See RFC2474 for a description of the DSCP field within the IP Header. 8 - * 9 - * ipt_DSCP.h,v 1.7 2002/03/14 12:03:13 laforge Exp 10 - */ 11 - #ifndef _IPT_DSCP_TARGET_H 12 - #define _IPT_DSCP_TARGET_H 13 - #include <linux/netfilter_ipv4/ipt_dscp.h> 14 - #include <linux/netfilter/xt_DSCP.h> 15 - 16 - #define ipt_DSCP_info xt_DSCP_info 17 - 18 - #endif /* _IPT_DSCP_TARGET_H */
+2 -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 - #include <linux/netfilter_ipv4/ipt_DSCP.h> 11 + #include <linux/netfilter/xt_DSCP.h> 12 12 13 - #define IPT_ECN_IP_MASK (~IPT_DSCP_MASK) 13 + #define IPT_ECN_IP_MASK (~XT_DSCP_MASK) 14 14 15 15 #define IPT_ECN_OP_SET_IP 0x01 /* set ECN bits of IPv4 header */ 16 16 #define IPT_ECN_OP_SET_ECE 0x10 /* set ECE bit of TCP header */
-18
include/linux/netfilter_ipv4/ipt_MARK.h
··· 1 - #ifndef _IPT_MARK_H_target 2 - #define _IPT_MARK_H_target 3 - 4 - /* Backwards compatibility for old userspace */ 5 - 6 - #include <linux/netfilter/xt_MARK.h> 7 - 8 - /* Version 0 */ 9 - #define ipt_mark_target_info xt_mark_target_info 10 - 11 - /* Version 1 */ 12 - #define IPT_MARK_SET XT_MARK_SET 13 - #define IPT_MARK_AND XT_MARK_AND 14 - #define IPT_MARK_OR XT_MARK_OR 15 - 16 - #define ipt_mark_target_info_v1 xt_mark_target_info_v1 17 - 18 - #endif /*_IPT_MARK_H_target*/
-16
include/linux/netfilter_ipv4/ipt_NFQUEUE.h
··· 1 - /* iptables module for using NFQUEUE mechanism 2 - * 3 - * (C) 2005 Harald Welte <laforge@netfilter.org> 4 - * 5 - * This software is distributed under GNU GPL v2, 1991 6 - * 7 - */ 8 - #ifndef _IPT_NFQ_TARGET_H 9 - #define _IPT_NFQ_TARGET_H 10 - 11 - /* Backwards compatibility for old userspace */ 12 - #include <linux/netfilter/xt_NFQUEUE.h> 13 - 14 - #define ipt_NFQ_info xt_NFQ_info 15 - 16 - #endif /* _IPT_DSCP_TARGET_H */
-9
include/linux/netfilter_ipv4/ipt_TCPMSS.h
··· 1 - #ifndef _IPT_TCPMSS_H 2 - #define _IPT_TCPMSS_H 3 - 4 - #include <linux/netfilter/xt_TCPMSS.h> 5 - 6 - #define ipt_tcpmss_info xt_tcpmss_info 7 - #define IPT_TCPMSS_CLAMP_PMTU XT_TCPMSS_CLAMP_PMTU 8 - 9 - #endif /*_IPT_TCPMSS_H*/
-10
include/linux/netfilter_ipv4/ipt_comment.h
··· 1 - #ifndef _IPT_COMMENT_H 2 - #define _IPT_COMMENT_H 3 - 4 - #include <linux/netfilter/xt_comment.h> 5 - 6 - #define IPT_MAX_COMMENT_LEN XT_MAX_COMMENT_LEN 7 - 8 - #define ipt_comment_info xt_comment_info 9 - 10 - #endif /* _IPT_COMMENT_H */
-18
include/linux/netfilter_ipv4/ipt_connbytes.h
··· 1 - #ifndef _IPT_CONNBYTES_H 2 - #define _IPT_CONNBYTES_H 3 - 4 - #include <linux/netfilter/xt_connbytes.h> 5 - #define ipt_connbytes_what xt_connbytes_what 6 - 7 - #define IPT_CONNBYTES_PKTS XT_CONNBYTES_PKTS 8 - #define IPT_CONNBYTES_BYTES XT_CONNBYTES_BYTES 9 - #define IPT_CONNBYTES_AVGPKT XT_CONNBYTES_AVGPKT 10 - 11 - #define ipt_connbytes_direction xt_connbytes_direction 12 - #define IPT_CONNBYTES_DIR_ORIGINAL XT_CONNBYTES_DIR_ORIGINAL 13 - #define IPT_CONNBYTES_DIR_REPLY XT_CONNBYTES_DIR_REPLY 14 - #define IPT_CONNBYTES_DIR_BOTH XT_CONNBYTES_DIR_BOTH 15 - 16 - #define ipt_connbytes_info xt_connbytes_info 17 - 18 - #endif
-7
include/linux/netfilter_ipv4/ipt_connmark.h
··· 1 - #ifndef _IPT_CONNMARK_H 2 - #define _IPT_CONNMARK_H 3 - 4 - #include <linux/netfilter/xt_connmark.h> 5 - #define ipt_connmark_info xt_connmark_info 6 - 7 - #endif /*_IPT_CONNMARK_H*/
-28
include/linux/netfilter_ipv4/ipt_conntrack.h
··· 1 - /* Header file for kernel module to match connection tracking information. 2 - * GPL (C) 2001 Marc Boucher (marc@mbsi.ca). 3 - */ 4 - 5 - #ifndef _IPT_CONNTRACK_H 6 - #define _IPT_CONNTRACK_H 7 - 8 - #include <linux/netfilter/xt_conntrack.h> 9 - 10 - #define IPT_CONNTRACK_STATE_BIT(ctinfo) XT_CONNTRACK_STATE_BIT(ctinfo) 11 - #define IPT_CONNTRACK_STATE_INVALID XT_CONNTRACK_STATE_INVALID 12 - 13 - #define IPT_CONNTRACK_STATE_SNAT XT_CONNTRACK_STATE_SNAT 14 - #define IPT_CONNTRACK_STATE_DNAT XT_CONNTRACK_STATE_DNAT 15 - #define IPT_CONNTRACK_STATE_UNTRACKED XT_CONNTRACK_STATE_UNTRACKED 16 - 17 - /* flags, invflags: */ 18 - #define IPT_CONNTRACK_STATE XT_CONNTRACK_STATE 19 - #define IPT_CONNTRACK_PROTO XT_CONNTRACK_PROTO 20 - #define IPT_CONNTRACK_ORIGSRC XT_CONNTRACK_ORIGSRC 21 - #define IPT_CONNTRACK_ORIGDST XT_CONNTRACK_ORIGDST 22 - #define IPT_CONNTRACK_REPLSRC XT_CONNTRACK_REPLSRC 23 - #define IPT_CONNTRACK_REPLDST XT_CONNTRACK_REPLDST 24 - #define IPT_CONNTRACK_STATUS XT_CONNTRACK_STATUS 25 - #define IPT_CONNTRACK_EXPIRES XT_CONNTRACK_EXPIRES 26 - 27 - #define ipt_conntrack_info xt_conntrack_info 28 - #endif /*_IPT_CONNTRACK_H*/
-15
include/linux/netfilter_ipv4/ipt_dccp.h
··· 1 - #ifndef _IPT_DCCP_H_ 2 - #define _IPT_DCCP_H_ 3 - 4 - #include <linux/netfilter/xt_dccp.h> 5 - #define IPT_DCCP_SRC_PORTS XT_DCCP_SRC_PORTS 6 - #define IPT_DCCP_DEST_PORTS XT_DCCP_DEST_PORTS 7 - #define IPT_DCCP_TYPE XT_DCCP_TYPE 8 - #define IPT_DCCP_OPTION XT_DCCP_OPTION 9 - 10 - #define IPT_DCCP_VALID_FLAGS XT_DCCP_VALID_FLAGS 11 - 12 - #define ipt_dccp_info xt_dccp_info 13 - 14 - #endif /* _IPT_DCCP_H_ */ 15 -
-21
include/linux/netfilter_ipv4/ipt_dscp.h
··· 1 - /* iptables module for matching the IPv4 DSCP field 2 - * 3 - * (C) 2002 Harald Welte <laforge@gnumonks.org> 4 - * This software is distributed under GNU GPL v2, 1991 5 - * 6 - * See RFC2474 for a description of the DSCP field within the IP Header. 7 - * 8 - * ipt_dscp.h,v 1.3 2002/08/05 19:00:21 laforge Exp 9 - */ 10 - #ifndef _IPT_DSCP_H 11 - #define _IPT_DSCP_H 12 - 13 - #include <linux/netfilter/xt_dscp.h> 14 - 15 - #define IPT_DSCP_MASK XT_DSCP_MASK 16 - #define IPT_DSCP_SHIFT XT_DSCP_SHIFT 17 - #define IPT_DSCP_MAX XT_DSCP_MAX 18 - 19 - #define ipt_dscp_info xt_dscp_info 20 - 21 - #endif /* _IPT_DSCP_H */
+2 -2
include/linux/netfilter_ipv4/ipt_ecn.h
··· 8 8 */ 9 9 #ifndef _IPT_ECN_H 10 10 #define _IPT_ECN_H 11 - #include <linux/netfilter_ipv4/ipt_dscp.h> 11 + #include <linux/netfilter/xt_dscp.h> 12 12 13 - #define IPT_ECN_IP_MASK (~IPT_DSCP_MASK) 13 + #define IPT_ECN_IP_MASK (~XT_DSCP_MASK) 14 14 15 15 #define IPT_ECN_OP_MATCH_IP 0x01 16 16 #define IPT_ECN_OP_MATCH_ECE 0x10
-10
include/linux/netfilter_ipv4/ipt_esp.h
··· 1 - #ifndef _IPT_ESP_H 2 - #define _IPT_ESP_H 3 - 4 - #include <linux/netfilter/xt_esp.h> 5 - 6 - #define ipt_esp xt_esp 7 - #define IPT_ESP_INV_SPI XT_ESP_INV_SPI 8 - #define IPT_ESP_INV_MASK XT_ESP_INV_MASK 9 - 10 - #endif /*_IPT_ESP_H*/
-14
include/linux/netfilter_ipv4/ipt_hashlimit.h
··· 1 - #ifndef _IPT_HASHLIMIT_H 2 - #define _IPT_HASHLIMIT_H 3 - 4 - #include <linux/netfilter/xt_hashlimit.h> 5 - 6 - #define IPT_HASHLIMIT_SCALE XT_HASHLIMIT_SCALE 7 - #define IPT_HASHLIMIT_HASH_DIP XT_HASHLIMIT_HASH_DIP 8 - #define IPT_HASHLIMIT_HASH_DPT XT_HASHLIMIT_HASH_DPT 9 - #define IPT_HASHLIMIT_HASH_SIP XT_HASHLIMIT_HASH_SIP 10 - #define IPT_HASHLIMIT_HASH_SPT XT_HASHLIMIT_HASH_SPT 11 - 12 - #define ipt_hashlimit_info xt_hashlimit_info 13 - 14 - #endif /* _IPT_HASHLIMIT_H */
-7
include/linux/netfilter_ipv4/ipt_helper.h
··· 1 - #ifndef _IPT_HELPER_H 2 - #define _IPT_HELPER_H 3 - 4 - #include <linux/netfilter/xt_helper.h> 5 - #define ipt_helper_info xt_helper_info 6 - 7 - #endif /* _IPT_HELPER_H */
-7
include/linux/netfilter_ipv4/ipt_length.h
··· 1 - #ifndef _IPT_LENGTH_H 2 - #define _IPT_LENGTH_H 3 - 4 - #include <linux/netfilter/xt_length.h> 5 - #define ipt_length_info xt_length_info 6 - 7 - #endif /*_IPT_LENGTH_H*/
-8
include/linux/netfilter_ipv4/ipt_limit.h
··· 1 - #ifndef _IPT_RATE_H 2 - #define _IPT_RATE_H 3 - 4 - #include <linux/netfilter/xt_limit.h> 5 - #define IPT_LIMIT_SCALE XT_LIMIT_SCALE 6 - #define ipt_rateinfo xt_rateinfo 7 - 8 - #endif /*_IPT_RATE_H*/
-7
include/linux/netfilter_ipv4/ipt_mac.h
··· 1 - #ifndef _IPT_MAC_H 2 - #define _IPT_MAC_H 3 - 4 - #include <linux/netfilter/xt_mac.h> 5 - #define ipt_mac_info xt_mac_info 6 - 7 - #endif /*_IPT_MAC_H*/
-9
include/linux/netfilter_ipv4/ipt_mark.h
··· 1 - #ifndef _IPT_MARK_H 2 - #define _IPT_MARK_H 3 - 4 - /* Backwards compatibility for old userspace */ 5 - #include <linux/netfilter/xt_mark.h> 6 - 7 - #define ipt_mark_info xt_mark_info 8 - 9 - #endif /*_IPT_MARK_H*/
-15
include/linux/netfilter_ipv4/ipt_multiport.h
··· 1 - #ifndef _IPT_MULTIPORT_H 2 - #define _IPT_MULTIPORT_H 3 - 4 - #include <linux/netfilter/xt_multiport.h> 5 - 6 - #define IPT_MULTIPORT_SOURCE XT_MULTIPORT_SOURCE 7 - #define IPT_MULTIPORT_DESTINATION XT_MULTIPORT_DESTINATION 8 - #define IPT_MULTIPORT_EITHER XT_MULTIPORT_EITHER 9 - 10 - #define IPT_MULTI_PORTS XT_MULTI_PORTS 11 - 12 - #define ipt_multiport xt_multiport 13 - #define ipt_multiport_v1 xt_multiport_v1 14 - 15 - #endif /*_IPT_MULTIPORT_H*/
-17
include/linux/netfilter_ipv4/ipt_physdev.h
··· 1 - #ifndef _IPT_PHYSDEV_H 2 - #define _IPT_PHYSDEV_H 3 - 4 - /* Backwards compatibility for old userspace */ 5 - 6 - #include <linux/netfilter/xt_physdev.h> 7 - 8 - #define IPT_PHYSDEV_OP_IN XT_PHYSDEV_OP_IN 9 - #define IPT_PHYSDEV_OP_OUT XT_PHYSDEV_OP_OUT 10 - #define IPT_PHYSDEV_OP_BRIDGED XT_PHYSDEV_OP_BRIDGED 11 - #define IPT_PHYSDEV_OP_ISIN XT_PHYSDEV_OP_ISIN 12 - #define IPT_PHYSDEV_OP_ISOUT XT_PHYSDEV_OP_ISOUT 13 - #define IPT_PHYSDEV_OP_MASK XT_PHYSDEV_OP_MASK 14 - 15 - #define ipt_physdev_info xt_physdev_info 16 - 17 - #endif /*_IPT_PHYSDEV_H*/
-7
include/linux/netfilter_ipv4/ipt_pkttype.h
··· 1 - #ifndef _IPT_PKTTYPE_H 2 - #define _IPT_PKTTYPE_H 3 - 4 - #include <linux/netfilter/xt_pkttype.h> 5 - #define ipt_pkttype_info xt_pkttype_info 6 - 7 - #endif /*_IPT_PKTTYPE_H*/
-23
include/linux/netfilter_ipv4/ipt_policy.h
··· 1 - #ifndef _IPT_POLICY_H 2 - #define _IPT_POLICY_H 3 - 4 - #include <linux/netfilter/xt_policy.h> 5 - 6 - #define IPT_POLICY_MAX_ELEM XT_POLICY_MAX_ELEM 7 - 8 - /* ipt_policy_flags */ 9 - #define IPT_POLICY_MATCH_IN XT_POLICY_MATCH_IN 10 - #define IPT_POLICY_MATCH_OUT XT_POLICY_MATCH_OUT 11 - #define IPT_POLICY_MATCH_NONE XT_POLICY_MATCH_NONE 12 - #define IPT_POLICY_MATCH_STRICT XT_POLICY_MATCH_STRICT 13 - 14 - /* ipt_policy_modes */ 15 - #define IPT_POLICY_MODE_TRANSPORT XT_POLICY_MODE_TRANSPORT 16 - #define IPT_POLICY_MODE_TUNNEL XT_POLICY_MODE_TUNNEL 17 - 18 - #define ipt_policy_spec xt_policy_spec 19 - #define ipt_policy_addr xt_policy_addr 20 - #define ipt_policy_elem xt_policy_elem 21 - #define ipt_policy_info xt_policy_info 22 - 23 - #endif /* _IPT_POLICY_H */
-21
include/linux/netfilter_ipv4/ipt_recent.h
··· 1 - #ifndef _IPT_RECENT_H 2 - #define _IPT_RECENT_H 3 - 4 - #include <linux/netfilter/xt_recent.h> 5 - 6 - #define ipt_recent_info xt_recent_mtinfo 7 - 8 - enum { 9 - IPT_RECENT_CHECK = XT_RECENT_CHECK, 10 - IPT_RECENT_SET = XT_RECENT_SET, 11 - IPT_RECENT_UPDATE = XT_RECENT_UPDATE, 12 - IPT_RECENT_REMOVE = XT_RECENT_REMOVE, 13 - IPT_RECENT_TTL = XT_RECENT_TTL, 14 - 15 - IPT_RECENT_SOURCE = XT_RECENT_SOURCE, 16 - IPT_RECENT_DEST = XT_RECENT_DEST, 17 - 18 - IPT_RECENT_NAME_LEN = XT_RECENT_NAME_LEN, 19 - }; 20 - 21 - #endif /*_IPT_RECENT_H*/
-105
include/linux/netfilter_ipv4/ipt_sctp.h
··· 1 - #ifndef _IPT_SCTP_H_ 2 - #define _IPT_SCTP_H_ 3 - 4 - #define IPT_SCTP_SRC_PORTS 0x01 5 - #define IPT_SCTP_DEST_PORTS 0x02 6 - #define IPT_SCTP_CHUNK_TYPES 0x04 7 - 8 - #define IPT_SCTP_VALID_FLAGS 0x07 9 - 10 - 11 - struct ipt_sctp_flag_info { 12 - u_int8_t chunktype; 13 - u_int8_t flag; 14 - u_int8_t flag_mask; 15 - }; 16 - 17 - #define IPT_NUM_SCTP_FLAGS 4 18 - 19 - struct ipt_sctp_info { 20 - u_int16_t dpts[2]; /* Min, Max */ 21 - u_int16_t spts[2]; /* Min, Max */ 22 - 23 - u_int32_t chunkmap[256 / sizeof (u_int32_t)]; /* Bit mask of chunks to be matched according to RFC 2960 */ 24 - 25 - #define SCTP_CHUNK_MATCH_ANY 0x01 /* Match if any of the chunk types are present */ 26 - #define SCTP_CHUNK_MATCH_ALL 0x02 /* Match if all of the chunk types are present */ 27 - #define SCTP_CHUNK_MATCH_ONLY 0x04 /* Match if these are the only chunk types present */ 28 - 29 - u_int32_t chunk_match_type; 30 - struct ipt_sctp_flag_info flag_info[IPT_NUM_SCTP_FLAGS]; 31 - int flag_count; 32 - 33 - u_int32_t flags; 34 - u_int32_t invflags; 35 - }; 36 - 37 - #define bytes(type) (sizeof(type) * 8) 38 - 39 - #define SCTP_CHUNKMAP_SET(chunkmap, type) \ 40 - do { \ 41 - chunkmap[type / bytes(u_int32_t)] |= \ 42 - 1 << (type % bytes(u_int32_t)); \ 43 - } while (0) 44 - 45 - #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) \ 46 - do { \ 47 - chunkmap[type / bytes(u_int32_t)] &= \ 48 - ~(1 << (type % bytes(u_int32_t))); \ 49 - } while (0) 50 - 51 - #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) \ 52 - ({ \ 53 - (chunkmap[type / bytes (u_int32_t)] & \ 54 - (1 << (type % bytes (u_int32_t)))) ? 1: 0; \ 55 - }) 56 - 57 - #define SCTP_CHUNKMAP_RESET(chunkmap) \ 58 - do { \ 59 - int i; \ 60 - for (i = 0; i < ARRAY_SIZE(chunkmap); i++) \ 61 - chunkmap[i] = 0; \ 62 - } while (0) 63 - 64 - #define SCTP_CHUNKMAP_SET_ALL(chunkmap) \ 65 - do { \ 66 - int i; \ 67 - for (i = 0; i < ARRAY_SIZE(chunkmap); i++) \ 68 - chunkmap[i] = ~0; \ 69 - } while (0) 70 - 71 - #define SCTP_CHUNKMAP_COPY(destmap, srcmap) \ 72 - do { \ 73 - int i; \ 74 - for (i = 0; i < ARRAY_SIZE(chunkmap); i++) \ 75 - destmap[i] = srcmap[i]; \ 76 - } while (0) 77 - 78 - #define SCTP_CHUNKMAP_IS_CLEAR(chunkmap) \ 79 - ({ \ 80 - int i; \ 81 - int flag = 1; \ 82 - for (i = 0; i < ARRAY_SIZE(chunkmap); i++) { \ 83 - if (chunkmap[i]) { \ 84 - flag = 0; \ 85 - break; \ 86 - } \ 87 - } \ 88 - flag; \ 89 - }) 90 - 91 - #define SCTP_CHUNKMAP_IS_ALL_SET(chunkmap) \ 92 - ({ \ 93 - int i; \ 94 - int flag = 1; \ 95 - for (i = 0; i < ARRAY_SIZE(chunkmap); i++) { \ 96 - if (chunkmap[i] != ~0) { \ 97 - flag = 0; \ 98 - break; \ 99 - } \ 100 - } \ 101 - flag; \ 102 - }) 103 - 104 - #endif /* _IPT_SCTP_H_ */ 105 -
-15
include/linux/netfilter_ipv4/ipt_state.h
··· 1 - #ifndef _IPT_STATE_H 2 - #define _IPT_STATE_H 3 - 4 - /* Backwards compatibility for old userspace */ 5 - 6 - #include <linux/netfilter/xt_state.h> 7 - 8 - #define IPT_STATE_BIT XT_STATE_BIT 9 - #define IPT_STATE_INVALID XT_STATE_INVALID 10 - 11 - #define IPT_STATE_UNTRACKED XT_STATE_UNTRACKED 12 - 13 - #define ipt_state_info xt_state_info 14 - 15 - #endif /*_IPT_STATE_H*/
-10
include/linux/netfilter_ipv4/ipt_string.h
··· 1 - #ifndef _IPT_STRING_H 2 - #define _IPT_STRING_H 3 - 4 - #include <linux/netfilter/xt_string.h> 5 - 6 - #define IPT_STRING_MAX_PATTERN_SIZE XT_STRING_MAX_PATTERN_SIZE 7 - #define IPT_STRING_MAX_ALGO_NAME_SIZE XT_STRING_MAX_ALGO_NAME_SIZE 8 - #define ipt_string_info xt_string_info 9 - 10 - #endif /*_IPT_STRING_H*/
-7
include/linux/netfilter_ipv4/ipt_tcpmss.h
··· 1 - #ifndef _IPT_TCPMSS_MATCH_H 2 - #define _IPT_TCPMSS_MATCH_H 3 - 4 - #include <linux/netfilter/xt_tcpmss.h> 5 - #define ipt_tcpmss_match_info xt_tcpmss_match_info 6 - 7 - #endif /*_IPT_TCPMSS_MATCH_H*/
+1 -10
include/linux/netfilter_ipv6/Kbuild
··· 1 1 header-y += ip6t_HL.h 2 2 header-y += ip6t_LOG.h 3 - header-y += ip6t_MARK.h 4 3 header-y += ip6t_REJECT.h 5 4 header-y += ip6t_ah.h 6 - header-y += ip6t_esp.h 7 5 header-y += ip6t_frag.h 8 - header-y += ip6t_hl.h 9 6 header-y += ip6t_ipv6header.h 10 - header-y += ip6t_length.h 11 - header-y += ip6t_limit.h 12 - header-y += ip6t_mac.h 13 - header-y += ip6t_mark.h 7 + header-y += ip6t_hl.h 14 8 header-y += ip6t_mh.h 15 - header-y += ip6t_multiport.h 16 9 header-y += ip6t_opts.h 17 - header-y += ip6t_physdev.h 18 - header-y += ip6t_policy.h 19 10 header-y += ip6t_rt.h 20 11 21 12 unifdef-y += ip6_tables.h
-9
include/linux/netfilter_ipv6/ip6t_MARK.h
··· 1 - #ifndef _IP6T_MARK_H_target 2 - #define _IP6T_MARK_H_target 3 - 4 - /* Backwards compatibility for old userspace */ 5 - #include <linux/netfilter/xt_MARK.h> 6 - 7 - #define ip6t_mark_target_info xt_mark_target_info 8 - 9 - #endif /*_IP6T_MARK_H_target*/
-10
include/linux/netfilter_ipv6/ip6t_esp.h
··· 1 - #ifndef _IP6T_ESP_H 2 - #define _IP6T_ESP_H 3 - 4 - #include <linux/netfilter/xt_esp.h> 5 - 6 - #define ip6t_esp xt_esp 7 - #define IP6T_ESP_INV_SPI XT_ESP_INV_SPI 8 - #define IP6T_ESP_INV_MASK XT_ESP_INV_MASK 9 - 10 - #endif /*_IP6T_ESP_H*/
-8
include/linux/netfilter_ipv6/ip6t_length.h
··· 1 - #ifndef _IP6T_LENGTH_H 2 - #define _IP6T_LENGTH_H 3 - 4 - #include <linux/netfilter/xt_length.h> 5 - #define ip6t_length_info xt_length_info 6 - 7 - #endif /*_IP6T_LENGTH_H*/ 8 -
-8
include/linux/netfilter_ipv6/ip6t_limit.h
··· 1 - #ifndef _IP6T_RATE_H 2 - #define _IP6T_RATE_H 3 - 4 - #include <linux/netfilter/xt_limit.h> 5 - #define IP6T_LIMIT_SCALE XT_LIMIT_SCALE 6 - #define ip6t_rateinfo xt_rateinfo 7 - 8 - #endif /*_IP6T_RATE_H*/
-7
include/linux/netfilter_ipv6/ip6t_mac.h
··· 1 - #ifndef _IP6T_MAC_H 2 - #define _IP6T_MAC_H 3 - 4 - #include <linux/netfilter/xt_mac.h> 5 - #define ip6t_mac_info xt_mac_info 6 - 7 - #endif /*_IP6T_MAC_H*/
-9
include/linux/netfilter_ipv6/ip6t_mark.h
··· 1 - #ifndef _IP6T_MARK_H 2 - #define _IP6T_MARK_H 3 - 4 - /* Backwards compatibility for old userspace */ 5 - #include <linux/netfilter/xt_mark.h> 6 - 7 - #define ip6t_mark_info xt_mark_info 8 - 9 - #endif /*_IPT_MARK_H*/
-14
include/linux/netfilter_ipv6/ip6t_multiport.h
··· 1 - #ifndef _IP6T_MULTIPORT_H 2 - #define _IP6T_MULTIPORT_H 3 - 4 - #include <linux/netfilter/xt_multiport.h> 5 - 6 - #define IP6T_MULTIPORT_SOURCE XT_MULTIPORT_SOURCE 7 - #define IP6T_MULTIPORT_DESTINATION XT_MULTIPORT_DESTINATION 8 - #define IP6T_MULTIPORT_EITHER XT_MULTIPORT_EITHER 9 - 10 - #define IP6T_MULTI_PORTS XT_MULTI_PORTS 11 - 12 - #define ip6t_multiport xt_multiport 13 - 14 - #endif /*_IP6T_MULTIPORT_H*/
-17
include/linux/netfilter_ipv6/ip6t_physdev.h
··· 1 - #ifndef _IP6T_PHYSDEV_H 2 - #define _IP6T_PHYSDEV_H 3 - 4 - /* Backwards compatibility for old userspace */ 5 - 6 - #include <linux/netfilter/xt_physdev.h> 7 - 8 - #define IP6T_PHYSDEV_OP_IN XT_PHYSDEV_OP_IN 9 - #define IP6T_PHYSDEV_OP_OUT XT_PHYSDEV_OP_OUT 10 - #define IP6T_PHYSDEV_OP_BRIDGED XT_PHYSDEV_OP_BRIDGED 11 - #define IP6T_PHYSDEV_OP_ISIN XT_PHYSDEV_OP_ISIN 12 - #define IP6T_PHYSDEV_OP_ISOUT XT_PHYSDEV_OP_ISOUT 13 - #define IP6T_PHYSDEV_OP_MASK XT_PHYSDEV_OP_MASK 14 - 15 - #define ip6t_physdev_info xt_physdev_info 16 - 17 - #endif /*_IP6T_PHYSDEV_H*/
-23
include/linux/netfilter_ipv6/ip6t_policy.h
··· 1 - #ifndef _IP6T_POLICY_H 2 - #define _IP6T_POLICY_H 3 - 4 - #include <linux/netfilter/xt_policy.h> 5 - 6 - #define IP6T_POLICY_MAX_ELEM XT_POLICY_MAX_ELEM 7 - 8 - /* ip6t_policy_flags */ 9 - #define IP6T_POLICY_MATCH_IN XT_POLICY_MATCH_IN 10 - #define IP6T_POLICY_MATCH_OUT XT_POLICY_MATCH_OUT 11 - #define IP6T_POLICY_MATCH_NONE XT_POLICY_MATCH_NONE 12 - #define IP6T_POLICY_MATCH_STRICT XT_POLICY_MATCH_STRICT 13 - 14 - /* ip6t_policy_modes */ 15 - #define IP6T_POLICY_MODE_TRANSPORT XT_POLICY_MODE_TRANSPORT 16 - #define IP6T_POLICY_MODE_TUNNEL XT_POLICY_MODE_TUNNEL 17 - 18 - #define ip6t_policy_spec xt_policy_spec 19 - #define ip6t_policy_addr xt_policy_addr 20 - #define ip6t_policy_elem xt_policy_elem 21 - #define ip6t_policy_info xt_policy_info 22 - 23 - #endif /* _IP6T_POLICY_H */