masc2008 commented on code in PR #3451:
URL: https://github.com/apache/nuttx-apps/pull/3451#discussion_r3072680720
##########
netutils/ntpclient/ntpclient.c:
##########
@@ -126,18 +126,31 @@ enum ntpc_daemon_e
NTP_STOPPED
};
+enum ntpc_server_source_e
+{
+ NTP_SERVER_SOURCE_NONE = 0,
+ NTP_SERVER_SOURCE_CONFIG,
+ NTP_SERVER_SOURCE_DHCP,
+ NTP_SERVER_SOURCE_EXPLICIT
+};
+
/* This type describes the state of the NTP client daemon. Only one
* instance of the NTP daemon is permitted in this implementation.
*/
struct ntpc_daemon_s
{
- uint8_t state; /* See enum ntpc_daemon_e */
- sem_t lock; /* Used to protect the whole structure */
- sem_t sync; /* Used to synchronize start and stop events */
- pid_t pid; /* Task ID of the NTP daemon */
- sq_queue_t kod_list; /* KoD excluded server addresses */
- int family; /* Allowed address family */
+ uint8_t state; /* See enum ntpc_daemon_e */
+ uint8_t source; /* See enum ntpc_server_source_e */
+ sem_t lock; /* Used to protect the whole structure */
+ sem_t sync; /* Used to synchronize start and stop events */
+ pid_t pid; /* Task ID of the NTP daemon */
+ sq_queue_t kod_list; /* KoD excluded server addresses */
Review Comment:
thanks! done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]