git: afee6fb209d1 - main - dhclient: request the Captive Portal options
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 07 Oct 2026 14:07:44 UTC
The branch main has been updated by bapt:
URL: https://cgit.FreeBSD.org/src/commit/?id=afee6fb209d18209f5b7707b944b30b80051e193
commit afee6fb209d18209f5b7707b944b30b80051e193
Author: Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2026-10-02 19:53:50 +0000
Commit: Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2026-10-07 14:07:09 +0000
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
---
sbin/dhclient/clparse.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sbin/dhclient/clparse.c b/sbin/dhclient/clparse.c
index 46ea6554849f..ef8d28cad076 100644
--- a/sbin/dhclient/clparse.c
+++ b/sbin/dhclient/clparse.c
@@ -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