From: David Miller Subject: Re: [RFC, PATCH] udp: complete port availability checking Date: Wed, 08 Oct 2008 17:49:22 -0700 (PDT) Message-ID: <20081008.174922.202846740.davem@davemloft.net> References: <48ED34C4.3080203@cosmosbay.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: dada1@cosmosbay.com Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:57914 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1754371AbYJIAtq (ORCPT ); Wed, 8 Oct 2008 20:49:46 -0400 In-Reply-To: <48ED34C4.3080203@cosmosbay.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Eric Dumazet Date: Thu, 09 Oct 2008 00:31:32 +0200 > While looking at UDP port randomization, I noticed it > was litle bit pessimistic, not looking at type of sockets > (IPV6/IPV4) and not looking at bound addresses if any. > > We should perform same tests than when binding to a > specific port. > > This permits a cleanup of udp_lib_get_port() > > Signed-off-by: Eric Dumazet This looks fine to me but I'd like some other eyeballs on this one before I apply it.