[U-Boot] [Patch] ./net/net.c - make Microsoft dns servers happy with random_port() numbers

Detlev Zundel dzu at denx.de
Tue Mar 9 09:37:43 CET 2010


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


More information about the U-Boot mailing list