]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
./net/net.c - make Microsoft dns servers happy with random_port() numbers
authorRobin Getz <rgetz@blackfin.uclinux.org>
Mon, 8 Mar 2010 19:07:00 +0000 (14:07 -0500)
committerBen Warren <biggerbadderben@gmail.com>
Mon, 3 May 2010 21:52:48 +0000 (14:52 -0700)
commit9739946cc5b616c026d433bd07d193cf452ddea0
treeef66b5ce60bff4bf493552f6a879353291382f96
parent6f5f89f01195e2d009b317df27197a38fcab3553
./net/net.c - make Microsoft dns servers happy with random_port() numbers

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.

Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
net/net.c