[rtems-libbsd commit] BPF(9): Fix timestamps

Sebastian Huber sebh at rtems.org
Thu Mar 28 10:37:42 UTC 2019


Module:    rtems-libbsd
Branch:    5-freebsd-12
Commit:    616e1d4cf7957064997371d416a1af27258c206b
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=616e1d4cf7957064997371d416a1af27258c206b

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Mar 28 11:34:10 2019 +0100

BPF(9): Fix timestamps

---

 freebsd/sys/net/bpf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/freebsd/sys/net/bpf.c b/freebsd/sys/net/bpf.c
index 357fd1b..dc0a30e 100644
--- a/freebsd/sys/net/bpf.c
+++ b/freebsd/sys/net/bpf.c
@@ -2460,6 +2460,7 @@ bpf_bintime2ts(struct bintime *bt, struct bpf_ts *ts, int tstype)
 
 	if ((tstype & BPF_T_MONOTONIC) == 0) {
 		bt2 = *bt;
+		getboottimebin(&boottimebin);
 		bintime_add(&bt2, &boottimebin);
 		bt = &bt2;
 	}




More information about the vc mailing list