1. 05 1月, 2007 5 次提交
  2. 23 12月, 2006 1 次提交
    • D
      [UDP]: Fix reversed logic in udp_get_port(). · 5c668704
      David S. Miller 提交于
      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: NDavid S. Miller <davem@davemloft.net>
      5c668704
  3. 18 12月, 2006 3 次提交
  4. 14 12月, 2006 5 次提交
  5. 13 12月, 2006 1 次提交
  6. 12 12月, 2006 2 次提交
  7. 11 12月, 2006 1 次提交
  8. 09 12月, 2006 2 次提交
  9. 08 12月, 2006 3 次提交
  10. 07 12月, 2006 6 次提交
  11. 04 12月, 2006 2 次提交
  12. 03 12月, 2006 9 次提交