foniod / redbpf

Rust library for building and running BPF/eBPF modules
Apache License 2.0
1.71k stars 136 forks source link

Add ability to use interface index for attaching/detaching #303

Closed kriomant closed 2 years ago

kriomant commented 2 years ago

In some cases there is already interface index and user is forced to convert it to interface name just for RedBPF to immediately resolve it back to interface index. Moreover, interface indices are stable, while name of interface may change on the fly.