leodido / traffico

Shape your traffic the BPF way
BSD 3-Clause "New" or "Revised" License
78 stars 2 forks source link

Make the TC BPF programs configurable #8

Open leodido opened 2 years ago

leodido commented 2 years ago

I'd like to have a way for TC BPF classifiers to be configured at runtime.

This can be very useful for parametrized programs. For example, the block_ip would benefit from having a hassle-free way to specify the IP to block without recompiling it.

The way to inject data into them is by using eBPF global data.

Yet, the API generation step (which happens at build time) must provide an "interface" to let the users populate them.