sudo apt install clang
-Some i386 headers will also be needed as eBPF is not x86_64 and some included headers
-are architecture specific ::
-
- sudo apt install libc6-dev-i386 --no-install-recommends
-
libbpf
~~~~~~
Suricata uses libbpf to interact with eBPF and XDP ::
+ sudo apt install libbpf-dev
+
+If the libbpf package is unavailable, it can be cloned from the repository ::
+
git clone https://github.com/libbpf/libbpf.git
Now, you can build and install the library ::
To get Suricata source, you can use the usual ::
git clone https://github.com/OISF/suricata.git
- cd suricata && git clone https://github.com/OISF/libhtp.git -b 0.5.x
+ cd suricata && ./scripts/bundle.sh
./autogen.sh