[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #17200] UDP not receiving broadcast subnet
From: |
Tim Curran |
Subject: |
[lwip-devel] [bug #17200] UDP not receiving broadcast subnet |
Date: |
Tue, 25 Jul 2006 12:28:17 +0000 |
User-agent: |
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) |
URL:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=17200>
Summary: UDP not receiving broadcast subnet
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: tgcmn
Submitted on: Tuesday 07/25/2006 at 12:28
Category: UDP
Severity: 3 - Normal
Item Group: Faulty Behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
_______________________________________________________
Details:
Using LWIP as UDP client on a NIOS processor and static IP addresses (not
DHCP). The subnet mask is 255.255.255.0. Packets directed at the socket
with exact IP address work fine, but if the last dot quad address is .255,
the packet is ignored. As an unverified patch, I altered line 216 of file
udp.c:
ip_addr_cmp(&(pcb->local_ip), &(iphdr->dest)))) {
replaced with 2 lines
ip_addr_cmp(&(pcb->local_ip), &(iphdr->dest))) ||
ip_addr_isbroadcast(&iphdr->dest, inp) ) {
and now subnet broadcasts appear to work okay. I do not know if this is
rigorously correct, but I wanted to report the behavior and suggest what
might be a solution.
Tim
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=17200>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-devel] [bug #17200] UDP not receiving broadcast subnet,
Tim Curran <=