CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2015/03/10 22:05:19

Modified files:
        usr.sbin/traceroute: traceroute.c 

Log message:
port the idea of using clock_gettime(CLOCK_MONOTONIC) for measuring
intervals from src/sbin/ping/ping.c r1.115.

> use clock_gettime(CLOCK_MONOTONIC) to get timestamps to measure the
> interval between sending a ping and getting a reply for it.
>
> this makes it resistant against local wall clock changes, which can
> skew the intervals reported or make them go negative.

this version puts clock_getting in a local gettime() function that
converts to a struct timeval that all the previous callers of
gettimeofday expect to get.

requested by deraadt@ florian@

Reply via email to