seladb / PcapPlusPlus

PcapPlusPlus is a multiplatform C++ library for capturing, parsing and crafting of network packets. It is designed to be efficient, powerful and easy to use. It provides C++ wrappers for the most popular packet processing engines such as libpcap, Npcap, WinPcap, DPDK, AF_XDP and PF_RING.
https://pcapplusplus.github.io/
The Unlicense
2.75k stars 675 forks source link

bpf/xsk.h file not found #1635

Closed Baruch-Fridman closed 3 weeks ago

Baruch-Fridman commented 4 weeks ago

https://github.com/seladb/PcapPlusPlus/blob/35f486cfa677c4a11a9d3742d7f32ab51da9870e/Pcap%2B%2B/src/XdpDevice.cpp#L8C1-L8C21 Didn't this file move to libxdp and should be under xdp/xsk?

seladb commented 4 weeks ago

Do you have libbpf-dev installed? Please take a look at our CI to see how to install libbpf: https://github.com/seladb/PcapPlusPlus/blob/35f486cfa677c4a11a9d3742d7f32ab51da9870e/.github/workflows/build_and_test.yml#L697

Baruch-Fridman commented 3 weeks ago

Yes I have libbpf-dev installed $ ls /usr/include/bpf/ bpf.h bpf_endian.h bpf_helpers.h btf.h libbpf_common.h libbpf_version.h usdt.bpf.h bpf_core_read.h bpf_helper_defs.h bpf_tracing.h libbpf.h libbpf_legacy.h skel_internal.h $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 24.04.1 LTS Release: 24.04 Codename: noble

update: I install libxdp also and changed to xdp/xsk.h it's work fine

tigercosmos commented 3 weeks ago

Seems the issue was resolved.