xdpcap: XDP Packet Capture
Apr 24, 2019Arthur Fabre

Summary
This post introduces xdpcap, an open-source tool that acts as a replacement for tcpdump specifically for eXpress Data Path (XDP) programs. It enables packet capture and filtering at the kernel level, addressing the visibility gap created by XDP's early packet processing. The post details the technical implementation, including the use of cBPF to eBPF compilation via cbpfc and eBPF tail-calls for instrumentation, thereby enhancing the ability to analyze and debug network traffic at a very low level.
More from the Data Infrastructure & Analytics trail
- Introducing Cloudflare Basin: an open, serverless data platform, now generally available
- Introducing the Billable Usage API: programmatic cost visibility for Cloudflare
- Announcing the Monetization Gateway: charge for any resource behind Cloudflare via x402
- How we built Cloudflare's data platform and an AI agent on top of it
- Iran's Internet is partially restored, Cloudflare Radar data shows