Fixed bug #46524: "Device as dhcp server does not work after upgrade to lwip-1.4.1"

This commit is contained in:
sg 2016-02-24 22:13:58 +01:00
parent ec49b68b38
commit 1dde3d6e56

View File

@ -166,6 +166,7 @@ udp_input_local_match(struct udp_pcb *pcb, struct netif *inp, u8_t broadcast)
#endif /* IP_SOF_BROADCAST_RECV */
{
if(ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) ||
((ip4_current_dest_addr()->addr == IPADDR_BROADCAST)) ||
ip4_addr_netcmp(ip_2_ip4(&pcb->local_ip), ip4_current_dest_addr(), netif_ip4_netmask(inp))) {
return 1;
}