aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/ip_icmp.c
diff options
context:
space:
mode:
authorBill Fumerola <billf@FreeBSD.org>2000-12-16 21:39:48 +0000
committerBill Fumerola <billf@FreeBSD.org>2000-12-16 21:39:48 +0000
commit16cd6db04f767eb5a4996f246e51297960145d84 (patch)
tree114cb2f6f2b35b6f47a5cf826da104b6e2527859 /sys/netinet/ip_icmp.c
parentd96cfeae0c6de51fa4e2dc9d96413b45a8076c48 (diff)
downloadsrc-16cd6db04f767eb5a4996f246e51297960145d84.tar.gz
src-16cd6db04f767eb5a4996f246e51297960145d84.zip
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
Notes
Notes: svn path=/head/; revision=70105
Diffstat (limited to 'sys/netinet/ip_icmp.c')
-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 11cb500d3a5f..d1694bfe0290 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));
}