lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] DHCP Server with LWIP


From: Artem Moroz
Subject: [lwip-users] DHCP Server with LWIP
Date: Sat, 29 Oct 2022 11:40:04 +0300

Hi guys!

I am looking for an example of a simple DHCP Server to run on my STM32F746DISCO board.
I have tried this code https://lists.gnu.org/archive/html/lwip-users/2012-12/msg00016.html but it does not work for my Windows 10 machine client. 
I have investigated the packets with Wireshark and it seems like Windows does not accept ACK packets from the server. The difference between the behaviour of this code and a standard router is that the router sends ACK packets to the client MAC and a newly assigned IP while the lwip sends ACK packets to broadcast MAC and IP addresses. 
I also know about this example https://github.com/nodemcu/nodemcu-firmware/blob/master/app/lwip/app/dhcpserver.c but it is also sending ACK brackets as broadcast. Did anybody test this? 
I believe there is a need to send packets in RAW mode to specify the IP and MAC of the target computer. 
Has anybody succeeded in running a working DHCP server with LWIP?


reply via email to

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