lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #34072] UDP Broadcast is received from wrong UDP PCB i


From: Ivan Delamer
Subject: [lwip-devel] [bug #34072] UDP Broadcast is received from wrong UDP PCB if udp_port matches
Date: Fri, 19 Aug 2011 15:25:21 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

Follow-up Comment #1, bug #34072 (project lwip):

I suggest adding an ip_addr_netcmp for broadcast packets in udp.c

(line 194)

#if IP_SOF_BROADCAST_RECV
            (broadcast && (pcb->so_options & SOF_BROADCAST) &&
             ip_addr_netcmp(ipX_2_ip(&pcb->local_ip), ip_current_dest_addr(),
&inp->netmask)))))) {
#else  /* IP_SOF_BROADCAST_RECV */
            (broadcast &&
             ip_addr_netcmp(ipX_2_ip(&pcb->local_ip), ip_current_dest_addr(),
&inp->netmask)))))) {
#endif /* IP_SOF_BROADCAST_RECV */


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?34072>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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