summaryrefslogtreecommitdiffstats
path: root/src/net/udp/ntp.c
diff options
context:
space:
mode:
authoranimeshbm2024-03-14 13:20:59 +0100
committerGitHub2024-03-14 13:20:59 +0100
commit211ac5f933e97b3accf935dd6dc92e58cc23dbb6 (patch)
treef385c42cc60bdb621bef3c4fe059f7562af0f57b /src/net/udp/ntp.c
parentsupport for aqc113 (diff)
parent[efi] Update to current EDK2 headers (diff)
downloadipxe-211ac5f933e97b3accf935dd6dc92e58cc23dbb6.tar.gz
ipxe-211ac5f933e97b3accf935dd6dc92e58cc23dbb6.tar.xz
ipxe-211ac5f933e97b3accf935dd6dc92e58cc23dbb6.zip
Merge branch 'ipxe:master' into aqc1xx
Diffstat (limited to 'src/net/udp/ntp.c')
-rw-r--r--src/net/udp/ntp.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/udp/ntp.c b/src/net/udp/ntp.c
index 11f8ccc0..55923357 100644
--- a/src/net/udp/ntp.c
+++ b/src/net/udp/ntp.c
@@ -36,6 +36,8 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <ipxe/timer.h>
#include <ipxe/time.h>
#include <ipxe/tcpip.h>
+#include <ipxe/dhcp.h>
+#include <ipxe/settings.h>
#include <ipxe/ntp.h>
/** @file
@@ -273,3 +275,11 @@ int start_ntp ( struct interface *job, const char *hostname ) {
err_alloc:
return rc;
}
+
+/** IPv4 NTP server setting */
+const struct setting ntp_setting __setting ( SETTING_IP4_EXTRA, ntp ) = {
+ .name = "ntp",
+ .description = "NTP server",
+ .tag = DHCP_NTP_SERVERS,
+ .type = &setting_type_ipv4,
+};