lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #26657] DNS, if host name is "localhost", result is er


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #26657] DNS, if host name is "localhost", result is error.
Date: Sun, 23 Aug 2009 13:47:58 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; de; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2

Follow-up Comment #2, bug #26657 (project lwip):

Seems like hanhui is correct:

Excerpt from gethostbyaddr description of opengroup:
"The addr argument of gethostbyaddr() shall be an in_addr structure when type
is AF_INET. It contains a binary format (that is, not null-terminated) address
in network byte order. The gethostbyaddr() function is not guaranteed to
return addresses of address families other than AF_INET, even when such
addresses exist in the database."

And after all, the addresses we return from real lookups are also in network
byte order. This also has to be adjusted in dns_gethostbyname().

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?26657>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]