[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #20180] Bug in netif.c (netif_set_ipaddr(...))
From: |
Alexander Drozd |
Subject: |
[lwip-devel] [bug #20180] Bug in netif.c (netif_set_ipaddr(...)) |
Date: |
Sat, 16 Jun 2007 00:47:40 +0000 |
User-agent: |
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705) |
URL:
<http://savannah.nongnu.org/bugs/?20180>
Summary: Bug in netif.c (netif_set_ipaddr(...))
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: alx_d
Submitted on: Суббота 16.06.2007 at 00:47
Category: None
Severity: 3 - Normal
Item Group: Faulty Behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Bug in netif.c (netif_set_ipaddr(...)):
for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next)
{
/* PCB bound to current local interface address? */
if (ip_addr_cmp(&(lpcb->local_ip), &(netif->ip_addr))) {
/* The PCB is listening to the old ipaddr and
* is set to listen to the new one instead */
ip_addr_set(&(lpcb->local_ip), ipaddr);
}
}
Must be:
for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next)
{
/* PCB bound to current local interface address? */
if ((!(ip_addr_isany(&(lpcb->local_ip)))) &&
(ip_addr_cmp(&(lpcb->local_ip), &(netif->ip_addr)))) {
/* The PCB is listening to the old ipaddr and
* is set to listen to the new one instead */
ip_addr_set(&(lpcb->local_ip), ipaddr);
}
}
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?20180>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #20180] Bug in netif.c (netif_set_ipaddr(...)),
Alexander Drozd <=