Changes since 4.4.2 (New Features)
-- Added support of the new DHCPv4 option v6-only-preferred specified in
-RFC 8925. A new reason V6ONLY was added to the client script and the
-client Linux script sample was updated.
+- Added support of the new DHCPv4 option v6-only-preferred specified
+in RFC 8925. A new reason code, V6ONLY, was added to the client script
+and the client Linux script sample was updated.
[Gitlab #132]
Changes since 4.4.2 (Bug Fixes)
if (evaluate_option_cache(&data, packet, (struct lease *)0, client,
packet->options, (struct option_state *)0,
&global_scope, oc, MDL)) {
- if (data.len > 3) {
+ if (data.len == 4) {
v6only_wait = getULong(data.data);
if (v6only_wait < MIN_V6ONLY_WAIT)
v6only_wait = MIN_V6ONLY_WAIT;
/* Check v6only first. */
v6only_wait = check_v6only(packet, client);
if (v6only_wait > 0) {
- log_info("v6 only preferred for %lu.",
+ log_info("v6 only preferred for %lu seconds.",
(long unsigned)v6only_wait);
cancel_timeout(send_request, client);
start_v6only(client, v6only_wait);