summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>2000-12-16 21:39:48 +0000
committerbillf <billf@FreeBSD.org>2000-12-16 21:39:48 +0000
commitd8586c3f20a1e9e2925a2cdb240369fa29d0630e (patch)
treed4ff6d56d06b3a28a663c7be9264ccc1f3c715dc /sys
parentcb4ef1e3d53fcab7749fb1a6d33f63cec3e42d2c (diff)
downloadFreeBSD-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
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_icmp.c2
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));
}
OpenPOWER on IntegriCloud