linux/net/ipv4
David S. Miller b32d13102d tcp: Fix bitmask test in tcp_syn_options()
As reported by Alexey Dobriyan:

	  CHECK   net/ipv4/tcp_output.c
	net/ipv4/tcp_output.c:475:7: warning: dubious: !x & y

And sparse is damn right!

	if (unlikely(!OPTION_TS & opts->options))
		    ^^^
		size += TCPOLEN_SACKPERM_ALIGNED;

OPTION_TS is (1 << 1), so condition will never trigger.

Signed-off-by: David S. Miller <davem@davemloft.net>
2008-07-21 18:45:34 -07:00
..
ipvs Merge branch 'stealer/ipvs/sync-daemon-cleanup-for-next' of git://git.stealer.net/linux-2.6 2008-07-16 20:07:06 -07:00
netfilter netfilter: nf_nat_sip: c= is optional for session 2008-07-21 10:11:02 -07:00
af_inet.c ipv4: clean the init_ipv4_mibs error paths 2008-07-18 04:04:51 -07:00
ah4.c
arp.c mib: add net to NET_INC_STATS_BH 2008-07-16 20:31:16 -07:00
cipso_ipv4.c
datagram.c mib: add net to IP_INC_STATS_BH 2008-07-16 20:20:11 -07:00
devinet.c
esp4.c
fib_frontend.c
fib_hash.c
fib_lookup.h
fib_rules.c
fib_semantics.c
fib_trie.c proc: consolidate per-net single-release callers 2008-07-18 04:07:44 -07:00
icmp.c mib: put icmpmsg statistics on struct net 2008-07-18 04:04:22 -07:00
igmp.c netns: Use net_eq() to compare net-namespaces for optimization. 2008-07-19 22:34:43 -07:00
inet_connection_sock.c mib: add net to IP_INC_STATS_BH 2008-07-16 20:20:11 -07:00
inet_diag.c
inet_fragment.c
inet_hashtables.c mib: add net to NET_INC_STATS_BH 2008-07-16 20:31:16 -07:00
inet_lro.c
inet_timewait_sock.c mib: add net to NET_ADD_STATS_BH 2008-07-16 20:32:25 -07:00
inetpeer.c
ip_forward.c mib: add net to IP_INC_STATS_BH 2008-07-16 20:20:11 -07:00
ip_fragment.c mib: add net to IP_ADD_STATS_BH 2008-07-16 20:20:33 -07:00
ip_gre.c
ip_input.c mib: put ip statistics on struct net 2008-07-18 04:02:42 -07:00
ip_options.c
ip_output.c mib: add net to IP_INC_STATS 2008-07-16 20:19:49 -07:00
ip_sockglue.c
ipcomp.c
ipconfig.c netns: Use net_eq() to compare net-namespaces for optimization. 2008-07-19 22:34:43 -07:00
ipip.c
ipmr.c netns: Use net_eq() to compare net-namespaces for optimization. 2008-07-19 22:34:43 -07:00
Kconfig
Makefile
netfilter.c
proc.c proc: consolidate per-net single-release callers 2008-07-18 04:07:44 -07:00
protocol.c
raw.c mib: add net to IP_INC_STATS 2008-07-16 20:19:49 -07:00
route.c mib: add net to IP_INC_STATS_BH 2008-07-16 20:20:11 -07:00
syncookies.c mib: add net to NET_INC_STATS_BH 2008-07-16 20:31:16 -07:00
sysctl_net_ipv4.c
tcp_bic.c
tcp_cong.c
tcp_cubic.c
tcp_diag.c
tcp_highspeed.c
tcp_htcp.c
tcp_hybla.c
tcp_illinois.c
tcp_input.c tcp: Remove redundant checks when setting eff_sacks 2008-07-19 00:07:02 -07:00
tcp_ipv4.c tcp: fix kernel panic with listening_get_next 2008-07-19 00:15:13 -07:00
tcp_lp.c
tcp_minisocks.c mib: add net to NET_INC_STATS_BH 2008-07-16 20:31:16 -07:00
tcp_output.c tcp: Fix bitmask test in tcp_syn_options() 2008-07-21 18:45:34 -07:00
tcp_probe.c tcp: correct kcalloc usage 2008-07-10 16:51:32 -07:00
tcp_scalable.c
tcp_timer.c mib: add net to NET_INC_STATS_BH 2008-07-16 20:31:16 -07:00
tcp_vegas.c
tcp_vegas.h
tcp_veno.c
tcp_westwood.c
tcp_yeah.c
tcp.c tcp: Fix MD5 signatures for non-linear skbs 2008-07-19 00:01:42 -07:00
tunnel4.c
udp_impl.h
udp.c udplite: Protection against coverage value wrap-around 2008-07-21 13:35:08 -07:00
udplite.c mib: put udplite statistics on struct net 2008-07-18 04:03:45 -07:00
xfrm4_input.c
xfrm4_mode_beet.c
xfrm4_mode_transport.c
xfrm4_mode_tunnel.c
xfrm4_output.c
xfrm4_policy.c
xfrm4_state.c
xfrm4_tunnel.c