mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-27 03:35:38 +00:00
23/02/2003 - Kieran Mansley - kieranm@gtemail.net
* Applied patch #2679 * Adds check to line 314 for NETIF_FLAG_BROADCAST
This commit is contained in:
parent
f81c2744cc
commit
5c7189124c
@ -311,7 +311,8 @@ udp_input(struct pbuf *p, struct netif *inp)
|
||||
/* No match was found, send ICMP destination port unreachable unless
|
||||
destination address was broadcast/multicast. */
|
||||
|
||||
if (!ip_addr_isbroadcast(&iphdr->dest, &inp->netmask) &&
|
||||
if (!((inp->flags & NETIF_FLAG_BROADCAST) &&
|
||||
ip_addr_isbroadcast(&iphdr->dest, &inp->netmask)) &&
|
||||
!ip_addr_ismulticast(&iphdr->dest)) {
|
||||
|
||||
/* adjust pbuf pointer */
|
||||
|
Loading…
x
Reference in New Issue
Block a user