Hey Simon, this small patch adds the DHCP options "posix-timezone" and "tzdb- timezone" as defined in RFC 4833, Section 2: https://datatracker.ietf.org/doc/html/rfc4833#section-2
Examples for valid options are > dhcp-option = option:posix-timezone,"CEST- 1CET,M3.2.0/2:00:00,M11.1.0/2:00:00" and > dhcp-option = option:tzdb-timezone,"Europe/Berlin" Best, Dominik
From fba30c5aa94d0fd6b98b690fbf72913e8683de7f Mon Sep 17 00:00:00 2001 From: DL6ER <dl...@dl6er.de> Date: Fri, 3 Sep 2021 13:51:18 +0200 Subject: [PATCH] Add RFC 4833 DHCP options "posix-timezone" and "tzdb-timezone". Signed-off-by: DL6ER <dl...@dl6er.de> --- src/dhcp-common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dhcp-common.c b/src/dhcp-common.c index 73568a9..1f91ca0 100644 --- a/src/dhcp-common.c +++ b/src/dhcp-common.c @@ -653,6 +653,8 @@ static const struct opttab_t { { "client-arch", 93, 2 | OT_DEC }, { "client-interface-id", 94, 0 }, { "client-machine-id", 97, 0 }, + { "posix-timezone", 100, OT_NAME }, /* RFC 4833, Sec. 2 */ + { "tzdb-timezone", 101, OT_NAME }, /* RFC 4833, Sec. 2 */ { "subnet-select", 118, OT_INTERNAL }, { "domain-search", 119, OT_RFC1035_NAME }, { "sip-server", 120, 0 }, -- 2.25.1
_______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss