[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #27454] udp_input() source address save method cause r
From: |
hanhui |
Subject: |
[lwip-devel] [bug #27454] udp_input() source address save method cause recvfrom() source address error |
Date: |
Tue, 15 Sep 2009 06:27:51 +0000 |
User-agent: |
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; MEGAUPLOAD 2.0) |
URL:
<http://savannah.nongnu.org/bugs/?27454>
Summary: udp_input() source address save method cause
recvfrom() source address error
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: hanhui03
Submitted on: Tue Sep 15 06:27:50 2009
Category: UDP
Severity: 3 - Normal
Item Group: Faulty Behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release:
lwIP version: CVS Head
_______________________________________________________
Details:
udp_input() use a local variable to save source address, and then post this
variable's address into message box. if user thread priority lower than tcpip
thread(), when udp_input() return, the local variable will be changed. then
user netconn_recv() thread get this source address is error.
--------CODE-----------
if (pcb->recv != NULL) {
/* copy the source address to make it independent of the pbuf */
struct ip_addr src_addr = iphdr->src;
/* now the recv function is responsible for freeing p */
pcb->recv(pcb->recv_arg, pcb, p, &src_addr, src);
}
--------CODE-----------
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?27454>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #27454] udp_input() source address save method cause recvfrom() source address error,
hanhui <=