lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Init - how to deal with static IP ?


From: Micael (abc)
Subject: Re: [lwip-users] Init - how to deal with static IP ?
Date: Thu, 7 Jan 2010 11:23:02 +0100
User-agent: SquirrelMail/1.4.19

Den To, 2010-01-07, 11:03 skrev address@hidden:

>> The above example violates threading constraints: the netif_*()
>> functions may only be called from the tcpip_thread. To do this, create a
>> new functions that calls netif_add/_set_default/_set_up and pass a
>> pointer to this function to tcpip_init. See the win32 example port for
>> how to do this (I'm currently at fixing the unix port, which violates
>> threading, too).

Ouch! Good that I asked, it worked just fine in my tests.. I think I used the 
unix port for
reference.
This also solves my problem, since when it is done this way, the OS will be up, 
and I may
retrieve a good IP address from database.

Thanks,
 Micael






reply via email to

[Prev in Thread] Current Thread [Next in Thread]