Good day.
Almalinux 9 contains libbpf 1.x by default, but when I’m trying to start Suricata 6.x with XDP and eBPF support can see errors below.
With libbpf 0.8.1 it works correct, but ip-features like ip a or ethtool were removed with removing libbpf 1.x
I can’t reinstall it cause it needs libbpf 1.x. Your guide in docs says get the url from git
What I should do to make this work if I have a “new” linux with libbpf 1.x and need xdp support with stable 6 version while waiting for release of 7?
libbpf: prog ‘xdp_hashfilter’: map relo failed to find map for section ‘maps’, off 112
17/5/2023 – 10:29:16 - - [ERRCODE: SC_ERR_INVALID_VALUE(130)] - Unable to load eBPF objects in ‘/usr/libexec/suricata/ebpf/xdp_filter.bpf’: Relocation failed
17/5/2023 – 10:29:16 - - [ERRCODE: SC_ERR_INVALID_VALUE(130)] - Error when loading XDP filter file
17/5/2023 – 10:29:16 - - all 2 packet processing threads, 4 management threads initialized, engine started.
Suricata Configuration:
AF_PACKET support: yes
eBPF support: yes
XDP support: yes
PF_RING support: no
NFQueue support: no
NFLOG support: no
IPFW support: no
Netmap support: no using new api: no
DAG enabled: no
Napatech enabled: no
WinDivert enabled: no
Unix socket enabled: yes
Detection enabled: yes
Libmagic support: yes
libnss support: yes
libnspr support: yes
libjansson support: yes
hiredis support: no
hiredis async with libevent: no
Prelude support: no
PCRE jit: yes
LUA support: no
libluajit: no
GeoIP2 support: no
Non-bundled htp: no
Hyperscan support: no
Libnet support: yes
liblz4 support: yes
HTTP2 decompression: no
Rust support: yes
Rust strict mode: no
Rust compiler path: /usr/bin/rustc
Rust compiler version: rustc 1.66.1 (90743e729 2023-01-10) (Red Hat 1.66.1-1.el9)
Cargo path: /usr/bin/cargo
Cargo version: cargo 1.66.1
Cargo vendor: yes
Python support: yes
Python path: /usr/bin/python3
Install suricatactl: yes
Install suricatasc: yes
Install suricata-update: yes
Profiling enabled: no
Profiling locks enabled: no
Plugin support (experimental): yes
Development settings:
Coccinelle / spatch: no
Unit tests enabled: no
Debug output enabled: no
Debug validation enabled: no
Generic build parameters:
Installation prefix: /usr
Configuration directory: /etc/suricata/
Log directory: /var/log/suricata/
–prefix /usr
–sysconfdir /etc
–localstatedir /var
–datarootdir /usr/share
Host: x86_64-pc-linux-gnu
Compiler: clang (exec name) / g++ (real)
GCC Protect enabled: no
GCC march native enabled: yes
GCC Profile enabled: no
Position Independent Executable enabled: no
CFLAGS -g -O2 -std=c11 -march=native -I${srcdir}/…/rust/gen -I${srcdir}/…/rust/dist
PCAP_CFLAGS
SECCFLAGS