bpf: add bpf_xdp_adjust_tail sample prog
adding bpf's sample program which is using bpf_xdp_adjust_tail helper by generating ICMPv4 "packet to big" message if ingress packet's size is bigger then 600 bytes Signed-off-by:Nikita V. Shirokov <tehnerd@tehnerd.com> Signed-off-by:
Daniel Borkmann <daniel@iogearbox.net>
Showing
- samples/bpf/Makefile 4 additions, 0 deletionssamples/bpf/Makefile
- samples/bpf/xdp_adjust_tail_kern.c 152 additions, 0 deletionssamples/bpf/xdp_adjust_tail_kern.c
- samples/bpf/xdp_adjust_tail_user.c 142 additions, 0 deletionssamples/bpf/xdp_adjust_tail_user.c
- tools/testing/selftests/bpf/bpf_helpers.h 2 additions, 0 deletionstools/testing/selftests/bpf/bpf_helpers.h
Loading
Please register or sign in to comment