lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 15 Jan 2012 17:42:30 +0100
From:	Eric Dumazet <eric.dumazet@...il.com>
To:	Anatoly Sivov <mm05@...l.ru>
Cc:	netdev@...r.kernel.org
Subject: Re: why does skb->tstamp use getnstimeofday?

Le dimanche 15 janvier 2012 à 19:11 +0400, Anatoly Sivov a écrit :
> Hello everyone.
> 
> struct sk_buff has a field tstamp, which is used for high resolution rtt  
> calculation.
> All operations with this field are done directly or indirectly via ktime_*  
> interface,
> which uses getnstimeofday function.
> My question is why does skb->tstamp use getnstimeofday?
> Isn't it better to use getrawmonotonic, where we are not inetrfered with  
> ntp,  for rtt calculation?
> 

It's using this since day 0, so cannot be changed or break applications,
which expect timeofday, not monotonic.

monotonic time services were added later.



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ