summaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/net.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2019-12-14 02:43:27 +0100
committerAlexei Starovoitov <ast@kernel.org>2019-12-16 00:58:04 +0100
commit612d05be250aa8804d3baba7a12445a267a580d3 (patch)
tree1db52e5cad03e579ed65ba76ca39bd58388d222f /tools/bpf/bpftool/net.c
parentlibbpf: Add generic bpf_program__attach() (diff)
downloadlinux-612d05be250aa8804d3baba7a12445a267a580d3.tar.xz
linux-612d05be250aa8804d3baba7a12445a267a580d3.zip
libbpf: Move non-public APIs from libbpf.h to libbpf_internal.h
Few libbpf APIs are not public but currently exposed through libbpf.h to be used by bpftool. Move them to libbpf_internal.h, where intent of being non-stable and non-public is much more obvious. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Martin KaFai Lau <kafai@fb.com> Link: https://lore.kernel.org/bpf/20191214014341.3442258-4-andriin@fb.com
Diffstat (limited to 'tools/bpf/bpftool/net.c')
-rw-r--r--tools/bpf/bpftool/net.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/bpf/bpftool/net.c b/tools/bpf/bpftool/net.c
index 4f52d3151616..d93bee298e54 100644
--- a/tools/bpf/bpftool/net.c
+++ b/tools/bpf/bpftool/net.c
@@ -18,6 +18,7 @@
#include <bpf.h>
#include <nlattr.h>
+#include "libbpf_internal.h"
#include "main.h"
#include "netlink_dumper.h"