Commit Graph

5 Commits (33572e4747eced0681a29af532cbb9406810e84e)

Author SHA1 Message Date
Yannick Hemery 7393b5a894 [ntp] Offset with system date might be greater than a signed long
If system date is completely out of sync with the reality, the resulting
offset might be too much for a signed long. For example, with a BIOS
date configured in 1921:

NTP 0xa068e6a8 sending request
NTP 0xa068e6a8 delta -1139207296 seconds

Co-authored-by: Sylvain Burette sylvain.burette@corp.ovh.com
Co-authored-by: Clement Sciascia clement.sciascia@corp.ovh.com
2022-03-18 15:19:18 +01:00
Michael Brown e6111c1517 [time] Allow system clock to be adjusted at runtime
Provide a mechanism to allow an arbitrary adjustment to be applied to
all subsequent calls to time().

Note that the underlying clock source (e.g. the RTC clock) will not be
changed; only the time as reported within iPXE will be affected.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
2016-06-13 15:29:05 +01:00
Michael Brown b6ee89ffb5 [legal] Relicense files under GPL2_OR_LATER_OR_UBDL
Relicense files for which I am the sole author (as identified by
util/relicense.pl).

Signed-off-by: Michael Brown <mcb30@ipxe.org>
2015-03-02 14:17:31 +00:00
Michael Brown c3b4860ce3 [legal] Update FSF mailing address in GPL licence texts
Suggested-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2012-07-20 19:55:45 +01:00
Michael Brown bd6805a8c1 [libc] Add mktime() function
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2012-03-19 17:35:46 +00:00