From ded935be3708f7df2c836046bd73b373a1dc40ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Tue, 18 Nov 2025 22:41:15 +0000 Subject: [PATCH] Add captive-portal name support for DHCP options Adds support into DHCP and DHCPv6 record. Useful for announcing URL for captive portal API URI. https://www.rfc-editor.org/rfc/rfc8910.html --- src/dhcp-common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dhcp-common.c b/src/dhcp-common.c index d1d3eb0..95e2ad3 100644 --- a/src/dhcp-common.c +++ b/src/dhcp-common.c @@ -709,7 +709,8 @@ static const struct opttab_t { { "client-machine-id", 97, 0 }, { "posix-timezone", 100, OT_NAME }, /* RFC 4833, Sec. 2 */ { "tzdb-timezone", 101, OT_NAME }, /* RFC 4833, Sec. 2 */ - { "ipv6-only", 108, 4 | OT_DEC }, /* RFC 8925 */ + { "ipv6-only", 108, 4 | OT_DEC }, /* RFC 8925 */ + { "captive-portal", 114, OT_NAME }, /* RFC 8910 */ { "subnet-select", 118, OT_INTERNAL }, { "domain-search", 119, OT_RFC1035_NAME }, { "sip-server", 120, 0 }, @@ -751,6 +752,7 @@ static const struct opttab_t opttab6[] = { { "ntp-server", 56, 0 /* OT_ADDR_LIST | OT_RFC1035_NAME */ }, { "bootfile-url", 59, OT_NAME }, { "bootfile-param", 60, OT_CSTRING }, + { "captive-portal", 103, OT_NAME }, /* RFC 8910 */ { NULL, 0, 0 } }; #endif