I’m still can’t come to a solution of my problem. But my information wasn’t 
very exact. To be more clear I made a log with Wireshark:

 



 

The first 4 lines show normal start-up process. The address is received and all 
works fine. When the cable is unplugged and plugged again, we see new DHCP 
request and acknowledge two times (line No. 17 to 23). In this case the state 
change callback is not called, that means IP address is now received. Then new 
discover-frame follows. 

I need an advice, please!

 

Simeon

 

From: simeon.trifo...@amk-drives.bg [mailto:simeon.trifo...@amk-drives.bg] 
Sent: Thursday, October 05, 2017 10:15 AM
To: 'lwip-users@nongnu.org' <lwip-users@nongnu.org>
Subject: Problem with renewing DHCP after link down/up with the new LWIP V2.0.2

 

Hi,

I’m facing to a problem with the renew of the DHCP after link down/up. With 
V1.4.1 all worked fine. Probably I’m missing something now. I call correct the 
functions netif_set_link_up() and netif_set_link_down() when the corresponding 
events occur. After power on DHCP works fine. But after disconnecting and 
connecting back the cable, I see that the discover-frame is sent from the stack 
and an offer-frame is returned from the DHCP server, but there is no reaction 
from the stack. Also the callback for status change is not called. I tried to 
call additionally netif_set_up() and dhcp_renew when link up event is 
generated, but there is no change. Can you give me a hint what I’m missing?

 

Simeon

 

_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to