OSDN Git Service

The default static buffer sizes are too small to handle the 8 entries returned
authorEric Andersen <andersen@codepoet.org>
Tue, 10 May 2005 08:22:56 +0000 (08:22 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 10 May 2005 08:22:56 +0000 (08:22 -0000)
commit60841bc6f445dc3a324315c42afac7a05242bd79
tree2d1f166db1a2d6de898538a510bd57d7ad09735f
parent9d4c823b841300f20928582393f78898be86e136
The default static buffer sizes are too small to handle the 8 entries returned
by 'nslookup www.yahoo.com' and 'nslookup mail.hotmail.com', and thus we
currently return ERANGE when trying to lookup some of the most popular hosts on
the planet.  Whether these sites deserve to be popular is a question I'll leave
for someone else to worry about.

This change makes certain we have enough static buffer space to handle about 21
IPv4 IP address replies per DNS query.  Far more than enough to handle common
cases such as www.yahoo.com and mail.hotmail.com.
libc/inet/resolv.c