Skip to content

Utilities and example programs for use with XDP

License

Notifications You must be signed in to change notification settings

lucashc/xdp-tools

This branch is 1 commit ahead of, 12 commits behind xdp-project/xdp-tools:refs/heads/main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fb45cf1 · Mar 3, 2025
Jan 14, 2025
May 4, 2021
Jan 8, 2025
Feb 26, 2025
Feb 19, 2025
Feb 19, 2025
Mar 3, 2025
Feb 19, 2025
Feb 19, 2025
Feb 19, 2025
Feb 19, 2025
Feb 19, 2025
Aug 13, 2020
Dec 12, 2022
Sep 16, 2022
Apr 14, 2021
May 4, 2021
Sep 11, 2024
Oct 11, 2024
Feb 26, 2025
Oct 20, 2023
Feb 19, 2025

Repository files navigation

xdp-tools - Library and utilities for use with XDP

This repository contains the libxdp library for working with the eXpress Data Path facility of the Linux kernel, and a collection of utilities and example code that uses the library.

The repository contains the following:

  • lib/libxdp/ - the libxdp library itself - can be built standalone using make libxdp
  • xdp-bench/ - an XDP benchmarking tool
  • xdp-dump/ - a tcpdump-like tool for capturing packets at the XDP layer
  • xdp-filter/ - a simple packet filtering utility powered by XDP
  • xdp-forward/ - an XDP forwarding plane
  • xdp-loader/ - a command-line utility for loading XDP programs using libxdp
  • xdp-monitor/ - a simple XDP tracepoint monitoring tool
  • xdp-trafficgen/ - an XDP-based packet generator
  • headers/xdp/ - reusable eBPF code snippets for XDP (installed in /usr/include/xdp by make install).
  • lib/util/ - common code shared between the different utilities
  • packaging/ - files used for distro packaging
  • lib/libbpf/ - a git submodule with libbpf, used if the system version is not recent enough

To compile, first run ./configure, then simply type make. Make sure you either have a sufficiently recent libbpf installed on your system, or that you pulled down the libbpf git submodule (git submodule init && git submodule update).

For a general introduction to XDP, please see the XDP tutorial, and for more BPF and XDP examples, see the bpf-examples repository.

About

Utilities and example programs for use with XDP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 79.1%
  • Roff 11.2%
  • Shell 6.2%
  • Makefile 2.0%
  • Python 1.2%
  • Emacs Lisp 0.3%