summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2017-05-03 17:51:58 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2017-05-03 17:51:58 +0000
commit696c57f5ae79cc9225100bfed49959bdfff915f6 (patch)
treedea9a8beb853efd66eb0bd04db3139eb2cd7a877 /sys
parentba136dc8fab14931c0f7cb75462945496a61626c (diff)
Provide a signed 64 bit integer timestamp in the mbuf packet header
The precision of the timestamp is not fixed yet, but there's a strong argument to measure it in nanoseconds. With suggestions from kettenis, dlg, miod and deraadt. OK deraadt@, sthen@
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/mbuf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index 202ce8ced8b..0e19e35c470 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mbuf.h,v 1.224 2017/02/07 06:27:18 dlg Exp $ */
+/* $OpenBSD: mbuf.h,v 1.225 2017/05/03 17:51:57 mikeb Exp $ */
/* $NetBSD: mbuf.h,v 1.19 1996/02/09 18:25:14 christos Exp $ */
/*
@@ -122,6 +122,7 @@ struct pkthdr_pf {
struct pkthdr {
void *ph_cookie; /* additional data */
SLIST_HEAD(, m_tag) ph_tags; /* list of packet tags */
+ int64_t ph_timestamp; /* packet timestamp */
int len; /* total packet length */
u_int16_t ph_tagsset; /* mtags attached */
u_int16_t ph_flowid; /* pseudo unique flow id */