diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2016-07-27 11:08:59 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2016-07-27 11:08:59 +0000 |
| commit | 584b675ed657ee94cabcf475b1ed73bee4eb4054 (patch) | |
| tree | e08e805219bd39e9a9c2d5cd174b1732cebd707f /sys/net/bpf.c | |
| parent | dc831186e32a0fbb7452d890f9ca459e192bae1d (diff) | |
Notes
Diffstat (limited to 'sys/net/bpf.c')
| -rw-r--r-- | sys/net/bpf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c index 3b12cf4cb501e..4251f71841e4c 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -2328,12 +2328,13 @@ bpf_hdrlen(struct bpf_d *d) static void bpf_bintime2ts(struct bintime *bt, struct bpf_ts *ts, int tstype) { - struct bintime bt2; + struct bintime bt2, boottimebin; struct timeval tsm; struct timespec tsn; if ((tstype & BPF_T_MONOTONIC) == 0) { bt2 = *bt; + getboottimebin(&boottimebin); bintime_add(&bt2, &boottimebin); bt = &bt2; } |
