diff options
| author | Andrey Ignatov <[email protected]> | 2018-10-03 22:26:38 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2018-10-04 14:04:15 +0000 |
| commit | 434fe9d4b4bfa8becb0959ef32b9b9fa628ef6fe (patch) | |
| tree | fcb82601678f3dbe3c49720fb8c8ab385a400152 /tools/lib/bpf/netlink.c | |
| parent | net: core: Fix build with CONFIG_IPV6=m (diff) | |
| download | kernel-434fe9d4b4bfa8becb0959ef32b9b9fa628ef6fe.tar.gz kernel-434fe9d4b4bfa8becb0959ef32b9b9fa628ef6fe.zip | |
libbpf: Move __dump_nlmsg_t from API to implementation
This typedef is used only by implementation in netlink.c. Nothing uses
it in public API. Move it to netlink.c.
Signed-off-by: Andrey Ignatov <[email protected]>
Acked-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/lib/bpf/netlink.c')
| -rw-r--r-- | tools/lib/bpf/netlink.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/lib/bpf/netlink.c b/tools/lib/bpf/netlink.c index fde1d7bf8199..da46d9358d9d 100644 --- a/tools/lib/bpf/netlink.c +++ b/tools/lib/bpf/netlink.c @@ -18,6 +18,9 @@ #define SOL_NETLINK 270 #endif +typedef int (*__dump_nlmsg_t)(struct nlmsghdr *nlmsg, dump_nlmsg_t, + void *cookie); + int bpf_netlink_open(__u32 *nl_pid) { struct sockaddr_nl sa; |
