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

netfilter: remove "#ifdef __KERNEL__" guards from some headers.

A number of non-UAPI Netfilter header-files contained superfluous
"#ifdef __KERNEL__" guards. Removed them.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

authored by

Jeremy Sowden and committed by
Pablo Neira Ayuso
20a9379d 78458e3e

-21
-3
include/linux/netfilter/nf_conntrack_dccp.h
··· 25 25 }; 26 26 #define CT_DCCP_ROLE_MAX (__CT_DCCP_ROLE_MAX - 1) 27 27 28 - #ifdef __KERNEL__ 29 28 #include <linux/netfilter/nf_conntrack_tuple_common.h> 30 29 31 30 struct nf_ct_dccp { ··· 34 35 u_int8_t last_dir; 35 36 u_int64_t handshake_seq; 36 37 }; 37 - 38 - #endif /* __KERNEL__ */ 39 38 40 39 #endif /* _NF_CONNTRACK_DCCP_H */
-4
include/linux/netfilter/nf_conntrack_h323.h
··· 2 2 #ifndef _NF_CONNTRACK_H323_H 3 3 #define _NF_CONNTRACK_H323_H 4 4 5 - #ifdef __KERNEL__ 6 - 7 5 #include <linux/netfilter.h> 8 6 #include <linux/skbuff.h> 9 7 #include <linux/types.h> ··· 93 95 unsigned char **data, TransportAddress *taddr, 94 96 int idx, __be16 port, 95 97 struct nf_conntrack_expect *exp); 96 - 97 - #endif 98 98 99 99 #endif
-3
include/linux/netfilter/nf_conntrack_irc.h
··· 2 2 #ifndef _NF_CONNTRACK_IRC_H 3 3 #define _NF_CONNTRACK_IRC_H 4 4 5 - #ifdef __KERNEL__ 6 - 7 5 #include <linux/netfilter.h> 8 6 #include <linux/skbuff.h> 9 7 #include <net/netfilter/nf_conntrack_expect.h> ··· 15 17 unsigned int matchlen, 16 18 struct nf_conntrack_expect *exp); 17 19 18 - #endif /* __KERNEL__ */ 19 20 #endif /* _NF_CONNTRACK_IRC_H */
-3
include/linux/netfilter/nf_conntrack_pptp.h
··· 50 50 __be16 pac_call_id; /* NAT'ed PAC call id */ 51 51 }; 52 52 53 - #ifdef __KERNEL__ 54 - 55 53 #define PPTP_CONTROL_PORT 1723 56 54 57 55 #define PPTP_PACKET_CONTROL 1 ··· 322 324 (*nf_nat_pptp_hook_expectfn)(struct nf_conn *ct, 323 325 struct nf_conntrack_expect *exp); 324 326 325 - #endif /* __KERNEL__ */ 326 327 #endif /* _NF_CONNTRACK_PPTP_H */
-2
include/linux/netfilter/nf_conntrack_proto_gre.h
··· 10 10 unsigned int timeout; 11 11 }; 12 12 13 - #ifdef __KERNEL__ 14 13 #include <net/netfilter/nf_conntrack_tuple.h> 15 14 16 15 struct nf_conn; ··· 31 32 32 33 bool gre_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff, 33 34 struct net *net, struct nf_conntrack_tuple *tuple); 34 - #endif /* __KERNEL__ */ 35 35 #endif /* _CONNTRACK_PROTO_GRE_H */
-4
include/linux/netfilter/nf_conntrack_sane.h
··· 3 3 #define _NF_CONNTRACK_SANE_H 4 4 /* SANE tracking. */ 5 5 6 - #ifdef __KERNEL__ 7 - 8 6 #define SANE_PORT 6566 9 7 10 8 enum sane_state { ··· 14 16 struct nf_ct_sane_master { 15 17 enum sane_state state; 16 18 }; 17 - 18 - #endif /* __KERNEL__ */ 19 19 20 20 #endif /* _NF_CONNTRACK_SANE_H */
-2
include/linux/netfilter/nf_conntrack_sip.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 #ifndef __NF_CONNTRACK_SIP_H__ 3 3 #define __NF_CONNTRACK_SIP_H__ 4 - #ifdef __KERNEL__ 5 4 6 5 #include <linux/skbuff.h> 7 6 #include <linux/types.h> ··· 195 196 enum sdp_header_types term, 196 197 unsigned int *matchoff, unsigned int *matchlen); 197 198 198 - #endif /* __KERNEL__ */ 199 199 #endif /* __NF_CONNTRACK_SIP_H__ */