You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the APIs available for XdpContext support mainly accessing the data and data_end. It would be handy to have the APIs that allow to grow or shrink the packet as are provided by bpf_xdp_xdp_adjust_{head|tail|meta}.
Such API will be useful during actual packet processing, whenever additional headers are to be pushed to the packet etc.
Will submit a draft PR for this.
The text was updated successfully, but these errors were encountered:
Added new public API for the `XdpContext`:
- `adjust_head` : To grow the packet buffer at the beginning
- `adjist_tail` : To grow the packet buffer at the end
- `adjust_meta` : To grow metadata area
These API are handy for packet processing when additional headers etc.
are to be pushed to the packet.
Also added these APIs using `cargo xtask public-api --bless`
Refs: aya-rs#948
Currently the APIs available for
XdpContext
support mainly accessing thedata
anddata_end
. It would be handy to have the APIs that allow to grow or shrink the packet as are provided bybpf_xdp_xdp_adjust_{head|tail|meta}
.Such API will be useful during actual packet processing, whenever additional headers are to be pushed to the packet etc.
Will submit a draft PR for this.
The text was updated successfully, but these errors were encountered: