xdp-tutorial icon indicating copy to clipboard operation
xdp-tutorial copied to clipboard

"Newer" libbpf

Open tjcw opened this issue 3 years ago • 0 comments

I notice that the xdp-tutorial is set up with the "older" libbpf, and I want to build eBPF programs based on the tutorial with the "newer" libbpf. Has anyone got a version of the tutorial which uses the "newer" libbpf ? I am working through issues arising, and currently at a compile error

tjcw@r28b29-n10:~/workspace/xdp-tutorial/common$ make
gcc -g -Wall -I../../libbpf/src//build/usr/include/  -I../headers -c -o common_user_bpf_xdp.o common_user_bpf_xdp.c
In file included from common_user_bpf_xdp.c:1:
../../libbpf/src//build/usr/include/bpf/libbpf.h:70:54: warning: 'enum bpf_link_type' declared inside parameter list will not be visible outside of this definition or declaration
   70 | LIBBPF_API const char *libbpf_bpf_link_type_str(enum bpf_link_type t);
      |                                                      ^~~~~~~~~~~~~

(as you can tell I am not very far through the port). All help with this apprecaited.

tjcw avatar Sep 23 '22 16:09 tjcw