iproute2
Package containing tools for network management on Linux. In particular, it contains tc, used to manage eBPF filters and actions, and ip, used to manage XDP programs. Most of the code related to BPF is in lib/bpf.c.
- from
- eBPF
- added
- 2026-10-10
- likes
- 0
similar
-
iproute2/examples/bpf/ git.kernel.org
Some networking programs to attach to the TC interface.
-
linux/net/core/filter.c git.kernel.org
Functions and eBPF helpers related to networking (TC, XDP etc.); also contains the code to migrate cBPF bytecode to eBPF (all cBPF programs are translated to eBPF in recent kernels).
-
iproute2-next git.kernel.org
The development tree, synchronised with net-next.
-
linux/net/sched/ git.kernel.org
and in particular in files act_bpf.c (action) and cls_bpf.c (filter): code related to BPF actions and filters with TC.
-
linux/kernel/bpf/ git.kernel.org
This directory contains most of BPF-related code. In particular, those files are worth of interest:
-
tc-bpf(8) man7.org
Manual page about using BPF with tc, including example commands and samples of code.
eBPF › eBPF Workflow: Tools and Utilities > iproute2: “Package containing tools for network management on Linux. In particular, it contains tc, used to manage eBPF filters and actions, and ip, used to manage XDP programs. Most of the code related to BPF is in lib/bpf.c.”