aboutsummaryrefslogtreecommitdiffstats
path: root/samples/bpf/fds_example.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2018-05-15 05:35:03 +0000
committerAlexei Starovoitov <[email protected]>2018-05-15 05:52:10 +0000
commit8d93045077aeede62127b6d6663bfdd31f6240da (patch)
tree96f4a0e5f3827ff3d849bb5047cd6aae1bdceab6 /samples/bpf/fds_example.c
parentsamples: bpf: include bpf/bpf.h instead of local libbpf.h (diff)
downloadkernel-8d93045077aeede62127b6d6663bfdd31f6240da.tar.gz
kernel-8d93045077aeede62127b6d6663bfdd31f6240da.zip
samples: bpf: rename libbpf.h to bpf_insn.h
The libbpf.h file in samples is clashing with libbpf's header. Since it only includes a subset of filter.h instruction helpers rename it to bpf_insn.h. Drop the unnecessary include of bpf/bpf.h. Signed-off-by: Jakub Kicinski <[email protected]> Acked-by: Jesper Dangaard Brouer <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'samples/bpf/fds_example.c')
-rw-r--r--samples/bpf/fds_example.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/samples/bpf/fds_example.c b/samples/bpf/fds_example.c
index e29bd52ff9e8..9854854f05d1 100644
--- a/samples/bpf/fds_example.c
+++ b/samples/bpf/fds_example.c
@@ -12,8 +12,10 @@
#include <sys/types.h>
#include <sys/socket.h>
+#include <bpf/bpf.h>
+
+#include "bpf_insn.h"
#include "bpf_load.h"
-#include "libbpf.h"
#include "sock_example.h"
#define BPF_F_PIN (1 << 0)