Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174410634
D60258.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
934 B
Referenced Files
None
Subscribers
None
D60258.diff
View Options
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -2431,10 +2431,21 @@
if (len) {
char name[256];
- if (dhcp_option_ev_name(name, sizeof(name),
+ /*
+ * The option is named "captive-portal", so the
+ * generic name derived below would be
+ * new_captive_portal / old_captive_portal.
+ * Append "_url" suffix so that the variable name
+ * says that the value is a URL.
+ */
+ if (i == DHO_CAPTIVE_PORTAL)
+ strlcpy(name, "captive_portal_url",
+ sizeof(name));
+ else if (!dhcp_option_ev_name(name, sizeof(name),
&dhcp_options[i]))
- script_set_env(ip->client, prefix, name,
- pretty_print_option(i, dp, len, 0, 0));
+ continue;
+ script_set_env(ip->client, prefix, name,
+ pretty_print_option(i, dp, len, 0, 0));
}
}
snprintf(tbuf, sizeof(tbuf), "%d", (int)lease->expiry);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 4, 12:19 AM (5 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40155563
Default Alt Text
D60258.diff (934 B)
Attached To
Mode
D60258: dhclient: export the Captive Portal URI to the script
Attached
Detach File
Event Timeline
Log In to Comment