Struct redbpf_probes::xdp::XdpContext [−][src]
Expand description
Context object provided to XDP programs.
XDP programs are passed a XdpContext
instance as their argument. Through
the context, programs can inspect, modify and redirect the underlying
networking data.
Fields
ctx: *mut xdp_md
Implementations
Trait Implementations
Returns a raw pointer to a given address inside the buffer. Read more
Returns a raw pointer to the address following prev
plus the size of a T
Read more
Returns the packet’s Ethernet
header if present.
Returns the packet’s IP
header if present.
Returns the packet’s transport header if present.
Returns the packet’s data starting after the transport headers.