-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Output iface name when --output-meta is set
This commits makes --output-meta to output not only ifindex, but also iface name. To achieve that, we first build a netns_inode => ifindex => iface_name cache. This is done by entering each /proc/$PID/ns/net, and then quering ifaces. Then, when a pwru process receives an BPF event, it queries the cache (netns inode and ifindex are set in the event). Example: ... [curl] nf_hook_slow netns=4026531840 mark=0x0 iface=3(wlan0) Signed-off-by: Martynas Pumputis <[email protected]>
- Loading branch information
Showing
1 changed file
with
123 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters