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

Sebastian Huber sebh at rtems.org
Thu Mar 28 10:36:19 UTC 2019


Module:    rtems-libbsd
Branch:    master
Commit:    21ea762051aff969523931a146957b9c2ba6a490
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=21ea762051aff969523931a146957b9c2ba6a490

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