RE: [lwip-users] How to securely switch between DHCP and static IP assignment?

2010-07-23 Thread Simon Goldschmidt
"Benjamin Schelte" wrote: > Actually I am not calling those functions from the tcpip_thread > environment. > So in case I have to, how can I manage to make the thread to do so? Generally, all functions in lwIP except for the socket API, the netconn API, the threaded netif-API (netifapi_* functio

RE: [lwip-users] How to securely switch between DHCP and static IP assignment?

2010-07-22 Thread Benjamin Schelte
: 'Mailing list for lwIP users' Subject: RE: [lwip-users] How to securely switch between DHCP and static IP assignment? I have to do the same thing as you, as well as be able to switch from DHCP to static (or back) with an Ethernet cable change. I also needed to support optional AutoIP or f

RE: [lwip-users] How to securely switch between DHCP and static IP assignment?

2010-07-22 Thread Benjamin Schelte
First of all here is some information about my environment. Realtime-OS (Free-RTOS), running on AVR32 lwip-version: 1.3.2 Actually I am not calling those functions from the tcpip_thread environment. So in case I have to, how can I manage to make the thread to do so? Currently they are called

Re: [lwip-users] How to securely switch between DHCP and static IP assignment?

2010-07-22 Thread Martin Velek
Hi, if you are running RTOS, I think that your functions are not called from tcp_ip thread, you should switch your netif* functions to these as stated Simon: #define netifapi_netif_remove(n) netifapi_netif_common(n, netif_remove, NULL) #define netifapi_netif_set_up(n) netifapi_netif_com

Re: [lwip-users] How to securely switch between DHCP and static IP assignment?

2010-07-22 Thread goldsi...@gmx.de
First of all, it always helps to know which version you are using (so I know which files I have to search in). Then, since you are using an OS, are you calling the below functions from tcpip_thread or from another thread (or interrupt context)? You may only call them from tcpip_thread since the

RE: [lwip-users] How to securely switch between DHCP and static IP assignment?

2010-07-22 Thread Bill Auerbach
Schelte Sent: Thursday, July 22, 2010 11:08 AM To: lwip-users@nongnu.org Subject: [lwip-users] How to securely switch between DHCP and static IP assignment? Hallo all, I am having trouble to securely switch between DHCP and static IP assignment. The way I am doing this at the moment is sometimes

[lwip-users] How to securely switch between DHCP and static IP assignment?

2010-07-22 Thread Benjamin Schelte
Hallo all, I am having trouble to securely switch between DHCP and static IP assignment. The way I am doing this at the moment is sometimes leading to an assert (please read further). So far I am quite satisfied with the lwip-stack and its performance, but this problem gives me a headache.