Topics

eBPF TC for adjusting the packet length

Kanthi P
 

Hi,

Can anyone suggest a way to adjust the packet length(for example to strip off the payload and have only headers) using eBPF TC program?

Thanks,
Kanthi

Yonghong Song
 

On Sun, Nov 18, 2018 at 6:55 AM Kanthi P <Pavuluri.kanthi@...> wrote:

Hi,

Can anyone suggest a way to adjust the packet length(for example to strip off the payload and have only headers) using eBPF TC program?
You may check helper bpf_skb_change_tail(), which could serve your purpose.


Thanks,
Kanthi