Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Xiche

#1
General Discussion / Re: Strange dhclient lease times!
February 27, 2025, 05:37:03 AM
Looks like dhclient was changed in upstream FreeBSD (and pulled into OPNsense) to use CLOCK_MONOTONIC for its concept of current time, which results in the offsets being relative to uptime of the system rather than the real time.  As a result, the timestamps for renew, rebind, and expire in the leases file end up being Unix epoch + system uptime + calculated offsets from the DHCPACK.  Beyond being a bit weird, it seems like this is also buggy across reboots where the "now" time will effectively move backwards...

Upstream commit: https://cgit.freebsd.org/src/commit/?id=d854b4b2aa2b8b60e7fbca07e9637d035318aad5

EDIT: Looks like this was already reported here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283256