Nick Hibma 223c44aec9 Fix handling of large DHCP expiry values.
They would overflow a signed 32-bit time_t on 32 bit architectures. This
was taken care of, but a compiler optimisation makes this behave
erratically. This could be resolved by adding a -fwrapv flag, but
instead we can check the value before adding the current timestamp to
it.

In the lease file values are still wrong though:

  option dhcp-rebinding-time -644245096;

PR:		218980
Reported by:	Bob Eager
MFC after:	2 weeks
2017-05-07 19:59:37 +00:00
..
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-03-08 23:58:10 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-05-02 17:16:24 +00:00
2017-03-10 19:13:38 +00:00
2017-03-02 14:50:01 +00:00
2017-02-28 23:42:47 +00:00
2017-04-07 15:39:41 +00:00
2016-10-05 20:42:35 +00:00
2017-02-28 23:42:47 +00:00
2016-10-05 20:45:21 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2016-10-03 00:40:20 +00:00
2017-02-28 23:42:47 +00:00
2017-03-14 12:39:19 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00