lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #8361] Add support for NTP option in DHCP


From: Sergio R. Caprile
Subject: [lwip-devel] [patch #8361] Add support for NTP option in DHCP
Date: Fri, 13 Jun 2014 14:48:05 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:29.0) Gecko/20100101 Firefox/29.0

Follow-up Comment #2, patch #8361 (project lwip):

This patch stores NTP server addresses in a local DHCP struct.
I think we should follow the same operations as for DNS servers:
* The DHCP server gets the offered servers and calls sntp_addserver() for each
one.
** Pros: the DHCP module does not need to know about SNTP of the amount of
memory for servers, it just calls the add function.
** Cons: the dhcp module must know the prototype for this function and sntp.c
is not part of the lwIP tree
* The SNTP module provides a new sntp_addserver() function, similar to the
current DNS module function.
* Pros: SNTP_MAX_SERVERS is an SNTP module macro instead of NTP_MAX_SERVERS a
DHCP module macro. 

I can do the changes based on the OP uploaded patch, and submit a new patch,
if you guys agree.


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?8361>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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