[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] How to switch between DHCP and static IP assignment?
From: |
massimiliano cialdi |
Subject: |
[lwip-users] How to switch between DHCP and static IP assignment? |
Date: |
Tue, 11 Jul 2017 17:30:37 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-users] How to switch between DHCP and static IP assignment?,
massimiliano cialdi <=