]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Merge pull request #12 from andersk/ra-time-units
authorRoy Marples <roy@marples.name>
Wed, 1 Jan 2020 22:35:56 +0000 (22:35 +0000)
committerGitHub <noreply@github.com>
Wed, 1 Jan 2020 22:35:56 +0000 (22:35 +0000)
The RA times are provided in milliseconds, but commit
569051c8aa8fc297eb8edb7bd228e0fd353d30c1 (dhcpcd-8.1.3~18) “Linux:
prefer ms RA times” incorrectly scaled them by an extra factor of 1000
before writing them to retrans_time_ms and base_reachable_time_ms.
Instead, write the values in milliseconds directly to the *_ms files,
and correctly convert to jiffies or seconds for the other files if
necessary.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>

Trivial merge