diff options
-rw-r--r-- | RELNOTES | 6 | ||||
-rw-r--r-- | client/dhclient.c | 4 |
2 files changed, 5 insertions, 5 deletions
@@ -105,9 +105,9 @@ by Eric Young (eay@cryptsoft.com). 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) diff --git a/client/dhclient.c b/client/dhclient.c index 42d098ab..0a4fa312 100644 --- a/client/dhclient.c +++ b/client/dhclient.c @@ -1285,7 +1285,7 @@ uint32_t check_v6only(packet, client) 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; @@ -1475,7 +1475,7 @@ void dhcpack (packet) /* 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); |