mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 14:25:41 +00:00
[master] Print preferred life and max life as unsigned ints
[rt37084] Change how we print the preferred_live and max_life variables into envvironment strings in the client code from being a signed int to an unsigned int.
This commit is contained in:
5
RELNOTES
5
RELNOTES
@@ -209,6 +209,11 @@ by Eric Young (eay@cryptsoft.com).
|
|||||||
files.
|
files.
|
||||||
[ISC-Bugs #38078]
|
[ISC-Bugs #38078]
|
||||||
|
|
||||||
|
- In the client code change the way preferred_life and max_life are printed
|
||||||
|
for environment variables to be unsigned rather than signed.
|
||||||
|
Thanks to Jiri Popelka at Red Hat for the bug report and patch.
|
||||||
|
[ISC-Bugs #37084]
|
||||||
|
|
||||||
Changes since 4.3.1b1
|
Changes since 4.3.1b1
|
||||||
|
|
||||||
- Modify the linux and openwrt dhclient scripts to process information
|
- Modify the linux and openwrt dhclient scripts to process information
|
||||||
|
@@ -3862,10 +3862,10 @@ dhc6_marshall_values(const char *prefix, struct client_state *client,
|
|||||||
}
|
}
|
||||||
client_envadd(client, prefix, "life_starts", "%d",
|
client_envadd(client, prefix, "life_starts", "%d",
|
||||||
(int)(addr->starts));
|
(int)(addr->starts));
|
||||||
client_envadd(client, prefix, "preferred_life", "%d",
|
client_envadd(client, prefix, "preferred_life", "%u",
|
||||||
(int)(addr->preferred_life));
|
addr->preferred_life);
|
||||||
client_envadd(client, prefix, "max_life", "%d",
|
client_envadd(client, prefix, "max_life", "%u",
|
||||||
(int)(addr->max_life));
|
addr->max_life);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ia fields. */
|
/* ia fields. */
|
||||||
|
Reference in New Issue
Block a user