This code is a sample program that can act as a packet sink or a proxy. It can listen to packets or send them to a new destination. The examples provided show how to set it up as a proxy or a bi-directional proxy. The program uses multishot receive, DEFER_TASKRUN, and fixed files. It includes options for listening ports, destinations, buffer sizes, and more. It was created by Jens Axboe in 2024 and includes opcode agnostic encoding for sqe/cqe->user_data. It utilizes the liburing library for efficient I/O operations.
https://git.kernel.dk/cgit/liburing/tree/examples/proxy.c