Re: dhcp integration into the platform


Marcus Shawcroft <marcus.shawcroft@...>
 

On 23 February 2017 at 22:55, Gil Pitney <gil.pitney@linaro.org> wrote:
Anticipating application initialization code like this:

#ifdef CONFIG_NET_DHCPV4
<wait on semaphore signaled by a NET_DHCP_IPV4_ADDR_ACQUIRED callback >
#else
<use pre-configured static ip address>
#endif
An interface always gets an address, hence I think that for both
static and DHCP cases the following would work:

<wait on semaphore signaled by a NET_EVENT_IPV4_ADDR_ADD callback >

Cheers
/Marcus

Join devel@lists.zephyrproject.org to automatically receive all group messages.