dhclient: request the Captive Portal options

Add DHCP options 114 (captive-portal) and 160 (captive-portal-legacy)
to the default Parameter Request List so that servers advertise the
Captive Portal API URI.

Approved by:		emaste
Reviewed by:		emaste
Differential Revision:	https://reviews.freebsd.org/D60257
This commit is contained in:
Baptiste Daroussin committed 2026-10-07 16:07:09 +02:00
1 parent a1789e345d
commit afee6fb209
1 file changed
+5
+5
View File
@@ -125,6 +125,11 @@ read_client_conf(void)
[top_level_config.requested_option_count++] = DHO_DOMAIN_SEARCH;
top_level_config.requested_options
[top_level_config.requested_option_count++] = DHO_INTERFACE_MTU;
top_level_config.requested_options
[top_level_config.requested_option_count++] = DHO_CAPTIVE_PORTAL;
top_level_config.requested_options
[top_level_config.requested_option_count++] =
DHO_CAPTIVE_PORTAL_LEGACY;
#ifdef INET6
/*
* RFC 8925 sec 3.2: The DHCPv4 client on an IPv4-requiring host MUST