Expand description
The event the eBPF program reports (crates/backends/netwatch-ebpf,
Event): #[repr(C)] { cgroup: u64, tgid: u32, hook: u32, len: u32, captured: u32, netns: u32, cgflags: u32, cgpath: [[u8; NAME]; LEVELS], data: [u8; CAPTURE] }, native-endian. Parsed by hand: no
unsafe, and a short buffer is an error rather than a misread.
Structs§
Constants§
- CAPTURE
- CG_ROOT
- In
cgflags: the probe’s walk reached the root, socgpathis whole. - EVENT_
SIZE - HEADER 🔒
- HOOK_
GENL - HOOK_
NETDEV register_netdevice: an interface registered, of any kind;datais its name,netnsits own.- HOOK_
NFBATCH nfnetlink_rcv_batch: an nftables batch (its header is the batch’s).- HOOK_
NFNETLINK - HOOK_
RTNETLINK - HOOK_
SOCKOPT nf_setsockopt: a legacy table change;dataispfthen the option.- LEVELS
- NAME
Functions§
- cgpath 🔒
- The whole path from the probe’s leaf-first names, or
Noneif the walk did not reach the root or a name filled its slot (may be cut short).