You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "masc2008 (via GitHub)" <gi...@apache.org> on 2026/04/14 04:59:29 UTC
Re: [PR] netutils: add DHCP-provided NTP server for ntpc [nuttx-apps]
masc2008 commented on code in PR #3451:
URL: https://github.com/apache/nuttx-apps/pull/3451#discussion_r3077214127
##########
netutils/netlib/netlib_obtainipv4addr.c:
##########
@@ -156,6 +214,18 @@ static int dhcp_obtain_statefuladdr(FAR const char *ifname)
if (ret == OK)
{
ret = dhcp_setup_result(ifname, &ds);
+#ifdef CONFIG_NETUTILS_NTPCLIENT
+ if (ret == OK)
+ {
+ ret = dhcp_set_ntp_servers(&ds);
Review Comment:
@xiaoxiang781216 , can you check this version? is it a too heavy change if using a register.
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org