Hallo,
I wonder how to switch between DHCP and static IP. I found an old post,
and I wonder How this switch can be done with lwip 2.0.2.
I simply call
netifapi_dhcp_release(netif);
netifapi_dhcp_stop(netif);
// set addresses in ipaddr, netmask, gw
netifapi_netif_set_addr(netif, &ipaddr, &ipaddr, &gw );
At this point netif->ip_addr is populated with new address and link is
up and netif is up (verified with debugger), but the equipment seems to
drop all packet to new address and als to old address
best regards
Max
_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users