[−][src]Attribute Macro redbpf_macros::xdp
#[xdp]
Attribute macro that must be used to define XDP
probes.
See also the XDP
API provided by
redbpf-probes
.
Example
use redbpf_probes::xdp::prelude::*; #[xdp] fn probe(ctx: XdpContext) -> XdpResult { // do something with the packet Ok(XdpAction::Pass) }