Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpf/xsk.h file not found #1635

Closed
Baruch-Fridman opened this issue Nov 5, 2024 · 3 comments
Closed

bpf/xsk.h file not found #1635

Baruch-Fridman opened this issue Nov 5, 2024 · 3 comments

Comments

@Baruch-Fridman
Copy link

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
Copy link
Owner

seladb commented Nov 6, 2024

Do you have libbpf-dev installed?
Please take a look at our CI to see how to install libbpf:

@Baruch-Fridman
Copy link
Author

Baruch-Fridman commented Nov 6, 2024

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
Copy link
Collaborator

Seems the issue was resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants