[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)


                 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



Using LWIP as UDP client on a NIOS processor and static IP addresses (not
DHCP).  The subnet mask is  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
  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.



Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]