Hallo,

 

The IP configuration in our embedded system is reconfigurable by the user
during runtime.

The user can also switch on DHCP or switch it off and use a static IP
address.

 

What is the correct way to switch DHCP off. Do I have to call
netifapi_dhcp_stop(), when switching off DHCP?

I tried this, but I could not see a DHCP message on wireshark.

 

This is how it works right now:

Any configuration change:

netifapi_netif_set_down()

 

DHCP switched off:

netifapi_netif_set_addr()

netifapi_netif_set_up()

 

DHCP switched on:

netifapi_dhcp_start()

wait up to 7 secs for DHCP_BOUND

 

Best regards,

Sandra

 

 

 

 

 

_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to