xdpcap

command
v0.0.0-...-2bac0a1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: BSD-3-Clause Imports: 26 Imported by: 0

Documentation

Overview

Program xdpcap produces tcpdump compatible PCAPs from a BPF map.

You can use it to introspect traffic dropped or redirected by XDP. It is also useful to examine any transformations done to a packet.

xdpcap requires you to instrument your XDP code in a specific way, check the documentation at https://github.com/cloudflare/xdpcap for details.

Once you have done so, you can capture into a file, or pipe straight into tcpdump:

xdpcap /path/to/pinned/map file.pcap
xdpcap /path/to/pinned/map - | tcpdump -r -

xdpcap supports tcpdump / libpcap-style filter expressions.

Jump to

Keyboard shortcuts

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