gopacketstamp

command module
v0.0.0-...-1f5ea80 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2023 License: ISC Imports: 14 Imported by: 0

README

gopacket Timestamps in the Future

This project demonstrates that on macOS 13.2.1, arm64 M1 max, usb Gigabit Ethernet, gopacket.CaptureInfo contains timestamps in the future, by 40 to 120 ms.

Affected Go package: github.com/google/gopacket
Version: v1.1.19 — Oct 19, 2020

gp-gop-timestamp 2023-03-15 11:21:33-07:00
press ^C to quit

goversion: go1.20.1
osversion: macOS 13.2.1
230315_11:21:34-07 network interface: "en5"
 10,595 8,964,748230315_14:18:10-07 packet count: 8,968,530 duration: 2h56m36s
2023-03-15 14:18:10.160815 -0700 PDT CaptureInfo.Timestamp
2023-03-15 14:18:10.040775 -0700 PDT m=+10595.933742584 time.Now
-120.04ms into the future

2023-03-15 14:18:10-07:00 Completed successfully
author Harald Rudell holds M.Sc.EE and M.Sc.BA&E.
5 years Go, 6 years Java, 8 years Node.js/React

© 2023–present Harald Rudell <harald.rudell@gmail.com> (https://haraldrudell.github.io/haraldrudell/)

Documentation

Overview

gp-gop-timestamp scans for tiumestamps erroneously in the future returned by func (*pcap.Handle).ReadPacketData

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL