From 16cd6db04f767eb5a4996f246e51297960145d84 Mon Sep 17 00:00:00 2001 From: Bill Fumerola Date: Sat, 16 Dec 2000 21:39:48 +0000 Subject: [PATCH] Use getmicrotime() instead of microtime() when timestamping ICMP packets, the former is quicker and accurate enough for use here. Submitted by: Jason Slagle (on IRC) Reviewed by: phk --- sys/netinet/ip_icmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c index 11cb500d3a5..d1694bfe029 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)); }