Skip to content

support nanosecond timestamp precision in pcap dump#1055

Merged
jfb8856606 merged 1 commit intoF-Stack:devfrom
jinliu777:feat/pcap-nsec
Mar 27, 2026
Merged

support nanosecond timestamp precision in pcap dump#1055
jfb8856606 merged 1 commit intoF-Stack:devfrom
jinliu777:feat/pcap-nsec

Conversation

@jinliu777
Copy link
Copy Markdown
Contributor

@jinliu777 jinliu777 commented Mar 25, 2026

Fix issue#862

Add nanosecond timestamp precision support for pcap packet capture.

Previously, pcap dump only supported microsecond precision using
gettimeofday() with magic 0xA1B2C3D4. This PR enables nanosecond
precision using clock_gettime(CLOCK_REALTIME) with magic 0xA1B23C4D.

For backward compatibility, this feature is disabled by default.
Set timestamp_precision=1 in [pcap] section to enable it.

@jfb8856606 jfb8856606 merged commit 6c6b28c into F-Stack:dev Mar 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to make dump in pcap file with more sensitive in timestamp?

2 participants