[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #22647] lwip_lwip_getaddrinfo problem
From: |
Jonathan Larmour |
Subject: |
[lwip-devel] [bug #22647] lwip_lwip_getaddrinfo problem |
Date: |
Tue, 18 Mar 2008 09:32:27 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060513 Fedora/1.0.8-1.1.fc3.1.legacy Firefox/1.0.8 |
Follow-up Comment #1, bug #22647 (project lwip):
What is implemented presently is self-consistent but not complete.
Completeness is not always desired for lwIP and the current getaddrinfo
implementation is nice and simple. What you want appears to be the
implementation of the AI_PASSIVE flag (see
http://www.opengroup.org/onlinepubs/009695399/functions/getaddrinfo.html ).
We don't claim to give perfect compliance and there's no stronger argument
for AI_PASSIVE than any other AI flag, and this will just make the
implementation bigger.
Since you're the one calling it with a nodename of NULL, I think you should
just handle it in your application - e.g. calling:
memset(&res->ai_addr->sin_addr, 0, sizeof(struct in_addr));
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?22647>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/