Page MenuHomeFreeBSD

dhclient: fix time parsing for leases expiring after 2038
ClosedPublic

Authored by alexander.bahm_dell.com on Jun 26 2023, 7:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 7, 2:45 AM
Unknown Object (File)
Thu, Nov 7, 2:45 AM
Unknown Object (File)
Thu, Nov 7, 2:45 AM
Unknown Object (File)
Tue, Nov 5, 11:06 AM
Unknown Object (File)
Tue, Nov 5, 10:54 AM
Unknown Object (File)
Sep 30 2024, 4:30 PM
Unknown Object (File)
Sep 27 2024, 7:14 AM
Unknown Object (File)
Sep 23 2024, 12:51 AM
Subscribers
None

Details

Summary

Convert lease parsing to timegm to calculate timestamp. For reference, when
writing the lease, we use gmtime to convert the timestamp to struct tm.

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj added inline comments.
sbin/dhclient/tests/option-domain-search.c
337
This revision is now accepted and ready to land.Jun 27 2023, 2:28 PM
This revision now requires review to proceed.Jun 27 2023, 8:36 PM
This revision is now accepted and ready to land.Jul 10 2023, 3:52 PM