Documentation
¶
Overview ¶
This program demonstrates using BPF_F_TEST_XDP_LIVE_FRAMES to run an XDP program in "live frame mode". In this mode, the kernel sends packets directly to the network interface using the XDP program's return value (e.g., XDP_TX). This is useful for high-performance packet generation and testing.
Usage: go run . <ifname> <repeat> <batch_size> <src_ip> <dst_ip> <dst_mac>
This example requires Linux kernel version 5.18 or newer.
Click to show internal directories.
Click to hide internal directories.