Re: dhcp integration into the platform
Shtivelman, Bella <bella.shtivelman@...>
Hi, In the existing DHCP design it’s not enough for application just subscribe to NET_EVENT_IF_UP event. For our client application we observed situations when the link was up, but IPV4 address still hasn’t been assigned yet. The issue was solved by subscribing to NET_EVENT_IPV4_ADDR_ADD event. So maybe in the new design it should be taken into account as well.
Thanks, Bella
From: zephyr-devel-bounces@... [mailto:zephyr-devel-bounces@...]
On Behalf Of Anas Nashif
Sent: Thursday, February 09, 2017 01:56 To: Marcus Shawcroft <marcus.shawcroft@...> Cc: Rissanen, Jukka <jukka.rissanen@...>; Bursztyka, Tomasz <tomasz.bursztyka@...>; devel@... Subject: Re: [Zephyr-devel] dhcp integration into the platform
Hi
On Thu, Feb 9, 2017 at 4:53 AM, Marcus Shawcroft <marcus.shawcroft@...> wrote:
What we see here are the first signs of a connection manager :)
We do need DHCP to act as a service, when writing an application that relies on DHCP it makes sense to have the initialisation and setup of the networking device consistently with having to reimplement the code over and over again in every application.
I can also see the DNS service being setup if we get a DNS server address via DHCP and set the context of the DNS client to allow resolution queries without having to do that by foot.
+1 for the approach described above.
Well, this API is not released yet, so I think it should be easy to remove, but we are running out of time for 1.7...
Anas
--------------------------------------------------------------------- This e-mail and any attachments may contain confidential material for
|
|