linux/net/ipv4/netfilter
Florian Westphal a03a8dbe20 netfilter: fix sparse warnings in reject handling
make C=1 CF=-D__CHECK_ENDIAN__ shows following:

net/bridge/netfilter/nft_reject_bridge.c:65:50: warning: incorrect type in argument 3 (different base types)
net/bridge/netfilter/nft_reject_bridge.c:65:50:    expected restricted __be16 [usertype] protocol [..]
net/bridge/netfilter/nft_reject_bridge.c:102:37: warning: cast from restricted __be16
net/bridge/netfilter/nft_reject_bridge.c:102:37: warning: incorrect type in argument 1 (different base types) [..]
net/bridge/netfilter/nft_reject_bridge.c:121:50: warning: incorrect type in argument 3 (different base types) [..]
net/bridge/netfilter/nft_reject_bridge.c:168:52: warning: incorrect type in argument 3 (different base types) [..]
net/bridge/netfilter/nft_reject_bridge.c:233:52: warning: incorrect type in argument 3 (different base types) [..]

Caused by two (harmless) errors:
1. htons() instead of ntohs()
2. __be16 for protocol in nf_reject_ipXhdr_put API, use u8 instead.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2015-03-10 15:01:32 +01:00
..
arp_tables.c
arpt_mangle.c
arptable_filter.c
ip_tables.c
ipt_ah.c
ipt_CLUSTERIP.c netfilter: ipt_CLUSTERIP: deprecate it in favour of xt_cluster 2015-03-06 01:21:05 +01:00
ipt_ECN.c
ipt_MASQUERADE.c netfilter: nf_nat: generalize IPv4 masquerading support for nf_tables 2014-09-09 16:31:29 +02:00
ipt_REJECT.c netfilter: reject: don't send icmp error if csum is invalid 2015-03-03 02:10:35 +01:00
ipt_rpfilter.c
ipt_SYNPROXY.c
iptable_filter.c
iptable_mangle.c
iptable_nat.c netfilter: nat: move specific NAT IPv4 to core 2014-09-02 17:14:10 +02:00
iptable_raw.c
iptable_security.c
Kconfig netfilter: nf_tables: consolidate Kconfig options 2015-03-06 01:21:15 +01:00
Makefile netfilter: combine IPv4 and IPv6 nf_nat_redirect code in one module 2014-11-27 13:08:42 +01:00
nf_conntrack_l3proto_ipv4.c netfilter: Convert print_tuple functions to return void 2014-11-05 14:10:33 -05:00
nf_conntrack_l3proto_ipv4_compat.c netfilter: Remove checks of seq_printf() return values 2014-11-05 14:11:02 -05:00
nf_conntrack_proto_icmp.c netfilter: Convert print_tuple functions to return void 2014-11-05 14:10:33 -05:00
nf_defrag_ipv4.c netfilter: use IS_ENABLED(CONFIG_BRIDGE_NETFILTER) 2014-10-02 18:30:54 +02:00
nf_log_arp.c netfilter: fix various sparse warnings 2014-11-13 12:14:42 +01:00
nf_log_ipv4.c netfilter: log: protect nf_log_register against double registering 2014-10-30 16:41:48 +01:00
nf_nat_h323.c
nf_nat_l3proto_ipv4.c netfilter: nat: move specific NAT IPv4 to core 2014-09-02 17:14:10 +02:00
nf_nat_masquerade_ipv4.c netfilter: nf_nat: generalize IPv4 masquerading support for nf_tables 2014-09-09 16:31:29 +02:00
nf_nat_pptp.c
nf_nat_proto_gre.c netfilter: use IS_ENABLED() macro 2014-06-30 11:38:03 +02:00
nf_nat_proto_icmp.c netfilter: use IS_ENABLED() macro 2014-06-30 11:38:03 +02:00
nf_nat_snmp_basic.c
nf_reject_ipv4.c netfilter: fix sparse warnings in reject handling 2015-03-10 15:01:32 +01:00
nf_tables_arp.c
nf_tables_ipv4.c
nft_chain_nat_ipv4.c netfilter: nft_chain_nat_ipv4: use generic IPv4 NAT code from core 2014-09-02 17:14:11 +02:00
nft_chain_route_ipv4.c
nft_masq_ipv4.c netfilter: nft_masq: fix uninitialized range in nft_masq_{ipv4, ipv6}_eval 2014-11-10 17:56:28 +01:00
nft_redir_ipv4.c netfilter: nf_tables: fix port natting in little endian archs 2014-12-23 15:34:28 +01:00
nft_reject_ipv4.c netfilter: reject: don't send icmp error if csum is invalid 2015-03-03 02:10:35 +01:00