|Subject:||Re: [lwip-users] Change IP parameters during runtime|
|Date:||Mon, 1 Oct 2012 10:00:48 +0200|
thank you! I've put the calls into my LwIP task.
The TCP listening on the old IP *will* be closed, I've tested that … there is no response on the old IP after the change.
Active TCP connections will be closed immediately.
TCP listening on ANY address will continue to listen.
TCP listening on the old address should be closed (I never checked this case)
>Do I need to call the netif_set_addr() in the same task where LwIP is running,
>or is it allowed to call it also from another task (it will be ensured that nothing else will call netif_set_addr from my side at the same time)
You can just use netifapi_xxx functions which will do the job of executing the netif_xxx functions in the tcpip thread for you.
|[Prev in Thread]||Current Thread||[Next in Thread]|