cloudflare / cloudflare/xdpcap

Timestamp at capture time

Open
#59 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
786
Forks
78
PR merge metrics
No merged PRs in 30d

Description

Timestamps are currently added in userspace and likely to be inaccurate: https://github.com/cloudflare/xdpcap/blob/master/cmd/xdpcap/main.go#L120

Switch timestamps to BPF using `bpf_ktime_get_ns` (which is `clock_gettime(CLOCK_MONOTONIC)` and not the actual time, so will need some adjusting in userspace).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.