From 82c4f5135b52df3010a49cf66d9faff12c484d91 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Mon, 25 Feb 2019 22:11:27 +0100 Subject: [PATCH] doc: use github mirror to setup libbpf --- doc/userguide/capture-hardware/ebpf-xdp.rst | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/doc/userguide/capture-hardware/ebpf-xdp.rst b/doc/userguide/capture-hardware/ebpf-xdp.rst index 03f5ad382e..0b8d1ea027 100644 --- a/doc/userguide/capture-hardware/ebpf-xdp.rst +++ b/doc/userguide/capture-hardware/ebpf-xdp.rst @@ -74,16 +74,13 @@ Make sure you have clang (>=3.9) installed on the system :: libbpf ~~~~~~ -Suricata uses libbpf to interact with eBPF and XDP. This library is available -in the Linux tree. Before Linux 4.16, a patched libbpf library is also needed:: +Suricata uses libbpf to interact with eBPF and XDP :: - git clone -b libbpf-release https://github.com/regit/linux.git - -If you have a recent enough kernel, you can skip this part. + git clone https://github.com/libbpf/libbpf.git Now, you can build and install the library :: - cd linux/tools/lib/bpf/ + cd libbpf/src/ make && sudo make install sudo make install_headers