xdpcap: XDP Packet Capture

Our servers process a lot of network packets, be it legitimate traffic or large denial of service attacks. To do so efficiently, we’ve embraced eXpress Data Path (XDP), a Linux kernel technology that provides a high performance mechanism for low level packet processing. We’re using it to drop DoS attack packets with L4Drop, and also in our new layer 4 load balancer. But there’s a downside to XDP: because it processes packets before the normal Linux network stack sees them, packets redirected or dropped are invisible to regular debugging tools such as tcpdump.
To address this, we built a tcpdump replacement for XDP, xdpcap. We are open sourcing this tool: the code and documentation are available on GitHub.
xdpcap uses our classic BPF (cBPF) to eBPF or C compiler, cbpfc, which we are also open sourcing: the code and documentation are available on GitHub.

Tcpdump provides an easy way to dump specific packets of interest. For example, to capture all IPv4 DNS packets, one could:
$ tcpdump ip and udp port 53
xdpcap reuses the same syntax! xdpcap can write packets to a pcap file:
$ xdpcap /path/to/hook capture.pcap Continue reading

AT&T pushed back its self-imposed deadline to provide nationwide 5G coverage from “early...
Developers taking advantage of the tie-up will not have to change how they code. They will just...
The 2.0 product is available as software-as-a-service, with SaaS services hosted by VMware now and...
Cumulus built a new underlying infrastructure for the toolset so end-users can process massive...
The British government has stopped short of banning Huawei but wants to exclude the vendor from...
The k3OS uses the same declarative syntax as other Kubernetes resources. This allows a user to...
