summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2023-07-19 12:10:15 +0200
committerMichael Brown2023-07-19 12:10:15 +0200
commitd5c08f78bdf45668a955c1f3d3a96f35d8c0e91b (patch)
treee3b1f7cc62d38f6a564ba10fec10d7da14826c52 /src/include
parent[console] Restore compatibility with "--key" values in existing scripts (diff)
downloadipxe-d5c08f78bdf45668a955c1f3d3a96f35d8c0e91b.tar.gz
ipxe-d5c08f78bdf45668a955c1f3d3a96f35d8c0e91b.tar.xz
ipxe-d5c08f78bdf45668a955c1f3d3a96f35d8c0e91b.zip
[ntp] Define NTP server setting
Define the IPv4 NTP server setting to simplify the use of a DHCP-provided NTP server in scripts, using e.g. #!ipxe dhcp ntp ${ntp} Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ipxe/dhcp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/ipxe/dhcp.h b/src/include/ipxe/dhcp.h
index a1f9ee25..51349efd 100644
--- a/src/include/ipxe/dhcp.h
+++ b/src/include/ipxe/dhcp.h
@@ -86,6 +86,9 @@ struct dhcp_packet;
/** Maximum transmission unit */
#define DHCP_MTU 26
+/** NTP servers */
+#define DHCP_NTP_SERVERS 42
+
/** Vendor encapsulated options */
#define DHCP_VENDOR_ENCAP 43