linux-stable-rt/net/ipv4
David S. Miller 5c668704b7 [UDP]: Fix reversed logic in udp_get_port().
When this code was converted to use sk_for_each() the
logic for the "best hash chain length" code was reversed,
breaking everything.

The original code was of the form:

			size = 0;
			do {
				if (++size >= best_size_so_far)
					goto next;
			} while ((sk = sk->next) != NULL);
			best_size_so_far = size;
			best = result;
		next:;

and this got converted into:

			sk_for_each(sk2, node, head)
				if (++size < best_size_so_far) {
					best_size_so_far = size;
					best = result;
				}

Which does something very very different from the original.

Signed-off-by: David S. Miller <davem@davemloft.net>
2006-12-22 11:42:26 -08:00
..
ipvs [IPVS]: Make ip_vs_sync.c <= 80col wide. 2006-12-11 14:35:03 -08:00
netfilter [NETFILTER]: {ip,ip6,arp}_tables: fix exponential worst-case search for loops 2006-12-13 16:48:23 -08:00
Kconfig
Makefile
af_inet.c
ah4.c
arp.c
cipso_ipv4.c
datagram.c
devinet.c [PATCH] sysctl: remove unused "context" param 2006-12-10 09:55:41 -08:00
esp4.c
fib_frontend.c
fib_hash.c [PATCH] slab: remove kmem_cache_t 2006-12-07 08:39:25 -08:00
fib_lookup.h
fib_rules.c
fib_semantics.c
fib_trie.c [PATCH] slab: remove kmem_cache_t 2006-12-07 08:39:25 -08:00
icmp.c
igmp.c
inet_connection_sock.c
inet_diag.c
inet_hashtables.c [PATCH] slab: remove kmem_cache_t 2006-12-07 08:39:25 -08:00
inet_timewait_sock.c Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2006-12-07 09:05:15 -08:00
inetpeer.c [PATCH] slab: remove kmem_cache_t 2006-12-07 08:39:25 -08:00
ip_forward.c
ip_fragment.c fix typo in net/ipv4/ip_fragment.c 2006-12-12 19:48:59 +01:00
ip_gre.c
ip_input.c
ip_options.c
ip_output.c [NET]: Convert hh_lock to seqlock. 2006-12-08 17:19:20 -08:00
ip_sockglue.c
ipcomp.c
ipconfig.c
ipip.c
ipmr.c [PATCH] slab: remove kmem_cache_t 2006-12-07 08:39:25 -08:00
multipath.c
multipath_drr.c
multipath_random.c
multipath_rr.c
multipath_wrandom.c
netfilter.c
proc.c
protocol.c
raw.c
route.c [IPV4]: Fix BUG of ip_rt_send_redirect() 2006-12-18 00:26:35 -08:00
syncookies.c
sysctl_net_ipv4.c [PATCH] sysctl: remove unused "context" param 2006-12-10 09:55:41 -08:00
tcp.c [TCP]: Fix oops caused by __tcp_put_md5sig_pool() 2006-12-13 16:48:26 -08:00
tcp_bic.c
tcp_cong.c
tcp_cubic.c
tcp_diag.c
tcp_highspeed.c
tcp_htcp.c
tcp_hybla.c
tcp_input.c [NET]: Memory barrier cleanups 2006-12-07 00:11:33 -08:00
tcp_ipv4.c [TCP]: Trivial fix to message in tcp_v4_inbound_md5_hash 2006-12-17 21:59:26 -08:00
tcp_lp.c
tcp_minisocks.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 2006-12-05 14:37:56 +00:00
tcp_output.c
tcp_probe.c
tcp_scalable.c
tcp_timer.c
tcp_vegas.c
tcp_veno.c
tcp_westwood.c
tunnel4.c
udp.c [UDP]: Fix reversed logic in udp_get_port(). 2006-12-22 11:42:26 -08:00
udp_impl.h
udplite.c
xfrm4_input.c
xfrm4_mode_beet.c
xfrm4_mode_transport.c
xfrm4_mode_tunnel.c
xfrm4_output.c
xfrm4_policy.c [IPSEC]: Fix inetpeer leak in ipv4 xfrm dst entries. 2006-12-06 23:45:15 -08:00
xfrm4_state.c
xfrm4_tunnel.c