I understood that the first time. If you’re using a TAP interface to read packets, you’d still need to re-inject them back into the kernel via a write to TAP. But it sounds to me like you should be using tc and iptables (at least if you’re using Linux). You don’t want to be doing this in user-space (unless you’re using DPDK). Either way, libevent is probably not the droid you’re looking for.
|