Skip to content

Commit 79110e5

Browse files
committed
Addressed comments
1 parent ee3fe73 commit 79110e5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

RELNOTES

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ by Eric Young (eay@cryptsoft.com).
105105

106106
Changes since 4.4.2 (New Features)
107107

108-
- Added support of the new DHCPv4 option v6-only-preferred specified in
109-
RFC 8925. A new reason V6ONLY was added to the client script and the
110-
client Linux script sample was updated.
108+
- Added support of the new DHCPv4 option v6-only-preferred specified
109+
in RFC 8925. A new reason code, V6ONLY, was added to the client script
110+
and the client Linux script sample was updated.
111111
[Gitlab #132]
112112

113113
Changes since 4.4.2 (Bug Fixes)

client/dhclient.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,7 @@ uint32_t check_v6only(packet, client)
12851285
if (evaluate_option_cache(&data, packet, (struct lease *)0, client,
12861286
packet->options, (struct option_state *)0,
12871287
&global_scope, oc, MDL)) {
1288-
if (data.len > 3) {
1288+
if (data.len == 4) {
12891289
v6only_wait = getULong(data.data);
12901290
if (v6only_wait < MIN_V6ONLY_WAIT)
12911291
v6only_wait = MIN_V6ONLY_WAIT;
@@ -1475,7 +1475,7 @@ void dhcpack (packet)
14751475
/* Check v6only first. */
14761476
v6only_wait = check_v6only(packet, client);
14771477
if (v6only_wait > 0) {
1478-
log_info("v6 only preferred for %lu.",
1478+
log_info("v6 only preferred for %lu seconds.",
14791479
(long unsigned)v6only_wait);
14801480
cancel_timeout(send_request, client);
14811481
start_v6only(client, v6only_wait);

0 commit comments

Comments
 (0)