tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Replace time_second with time_uptime in some places



Ryota Ozaki <ozaki-r%netbsd.org@localhost> writes:

> Some codes in sys/net* use time_second to
> manage time periods such as cache expirations.
> However, time_second doesn't increase monotonically
> and can leap by say settimeofday(2) according to
> time_second(9). We should use time_uptime
> instead of it to avoid such time leaps.
>
> http://www.netbsd.org/~ozaki-r/use-time_uptime.diff

Generally this sounds sensible.  One thing to consider is whether this
change results in leaking uptime to hosts over the network.  (That could
be used to help identify roving hosts.)

Attachment: pgpdvAUUdwoj8.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index