feature: More public APIs for `XdpContext` to grow/shrink packets
gabhijit opened this issue · 0 comments
gabhijit commented
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.