lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] DHCP fails ?


From: address@hidden
Subject: Re: [lwip-users] DHCP fails ?
Date: Tue, 9 May 2017 21:11:34 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

Noam Weissman wrote:
I have a simple link task that checks the PHY for link, reads it. If link is up it starts the DHCP task and wait for address.

If link is down the DHCP task is put into an idle state and waits for link to come backā€¦

[..]

When board is reset, link is established and at the DHCP task this code returns with NULL ?

dhcp = (struct dhcp *)netif_get_client_data(pDHCP_TaskParams->netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP);


Honestly, from how you write it, that sounds like a threading issue. You must not use that function (as many
others) from any other context than tcpip_thread!

Just to point out that this setup works for several years on several devices and never had any problems

The fact that it works on 1.4.1 (what's 1.41?) does *NOT* mean anything. The code could be wrong and just work by chance...

Maybe I haven't understood your setup correctly. In that case, please try to describe it better :-)

Simon



reply via email to

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