Skip to content
Snippets Groups Projects
Commit 9739946c authored by Robin Getz's avatar Robin Getz Committed by Ben Warren
Browse files

./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: default avatarRobin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
parent 6f5f89f0
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment