diff options
author | billf <billf@FreeBSD.org> | 2000-12-16 21:39:48 +0000 |
---|---|---|
committer | billf <billf@FreeBSD.org> | 2000-12-16 21:39:48 +0000 |
commit | d8586c3f20a1e9e2925a2cdb240369fa29d0630e (patch) | |
tree | d4ff6d56d06b3a28a663c7be9264ccc1f3c715dc | |
parent | cb4ef1e3d53fcab7749fb1a6d33f63cec3e42d2c (diff) | |
download | FreeBSD-src-d8586c3f20a1e9e2925a2cdb240369fa29d0630e.zip FreeBSD-src-d8586c3f20a1e9e2925a2cdb240369fa29d0630e.tar.gz |
Use getmicrotime() instead of microtime() when timestamping ICMP packets,
the former is quicker and accurate enough for use here.
Submitted by: Jason Slagle <raistlin@toledolink.com> (on IRC)
Reviewed by: phk
-rw-r--r-- | sys/netinet/ip_icmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c index 11cb500..d1694bf 100644 --- a/sys/netinet/ip_icmp.c +++ b/sys/netinet/ip_icmp.c @@ -774,7 +774,7 @@ iptime() struct timeval atv; u_long t; - microtime(&atv); + getmicrotime(&atv); t = (atv.tv_sec % (24*60*60)) * 1000 + atv.tv_usec / 1000; return (htonl(t)); } |