[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #46524] Device as dhcp server does not work after upgr
From: |
Axel Lin |
Subject: |
[lwip-devel] [bug #46524] Device as dhcp server does not work after upgrade to lwip-1.4.1 |
Date: |
Thu, 26 Nov 2015 01:56:14 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 |
Follow-up Comment #1, bug #46524 (project lwip):
The device is running a dhcp server.
The dhcp client (PC) sends a "DHCP Request" to destination 255.255.255.255.
But the device's local_ip is 192.168.10.1 with netmask 255.255.255.0.
Current code fails on such case (local_match is 0) so netconn_recv() never get
the dhcp request packet.
I think the problem is the ip_addr_netcmp() returns FALSE in this case.
ip_addr_netcmp(&pcb->local_ip, ip_current_dest_addr(), &inp->netmask)
comments?
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?46524>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/