From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: Tue, 09 Mar 2010 09:37:43 +0100 Subject: [U-Boot] [Patch] ./net/net.c - make Microsoft dns servers happy with random_port() numbers In-Reply-To: <201003081407.01006.rgetz@blackfin.uclinux.org> (Robin Getz's message of "Mon, 8 Mar 2010 14:07:00 -0500") References: <201003081407.01006.rgetz@blackfin.uclinux.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Robin, > For some reason, (which I can't find any documentation on), if U-Boot > gives a port number higher than 17500 to a Microsoft DNS server, the > server will reply to port 17500, and U-Boot will ignore things (since > that isn't the port it asked the DNS server to reply to). > > This fixes that by ensuring the random port number is less than 17500. Can you please put such a comment also in the code? I believe this to be useful information when studying the code and not only when going through changelogs. Thanks Detlev -- Microsoft gives you windows, Linux gives you the whole house. -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de