[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #22647] lwip_lwip_getaddrinfo problem
From: |
Cui hengbin |
Subject: |
[lwip-devel] [bug #22647] lwip_lwip_getaddrinfo problem |
Date: |
Tue, 18 Mar 2008 00:26:46 +0000 |
User-agent: |
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) |
URL:
<http://savannah.nongnu.org/bugs/?22647>
Summary: lwip_lwip_getaddrinfo problem
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: phant
Submitted on: Tuesday 03/18/08 at 00:26
Category: sockets
Severity: 3 - Normal
Item Group: Faulty Behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release:
_______________________________________________________
Details:
Hi All:
when i use "getaddrinfo(NULL, port, &hints, &res))" when
"(bind(*sock, res->ai_addr, res->ai_addrlen)",I find the port isn't opened.
I find in the lwip_getaddrinfo's code as follow:
...
if (nodename != NULL) {
/* service location specified, try to resolve */
err = netconn_gethostbyname(nodename, &addr);
if (err != ERR_OK) {
return EAI_FAIL;
}
} else {
/* service location specified, use loopback address */
addr.addr = INADDR_LOOPBACK;
}
...
the address is loopback'address "127.0.0.1",but i don't enable the loopback
,can I change it to "IP_ADDR_ANY"?
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?22647>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #22647] lwip_lwip_getaddrinfo problem,
Cui hengbin <=