Hi Stephane,

 

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.

 

BR

Marco

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Stephane
Lesage
Sent: Friday, September 28, 2012 6:50 PM
To: Mailing list for lwIP users
Subject: Re: [lwip-users] Change IP parameters during runtime

 

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,

 

Yes

 

>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.

 

Best regards.

 

-- 

Stephane Lesage

 

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

Reply via email to