bpftool: fix BTF raw dump of FWD's fwd_kind
authorAndrii Nakryiko <andriin@fb.com>
Fri, 17 May 2019 06:21:29 +0000 (23:21 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 17 May 2019 12:21:29 +0000 (14:21 +0200)
commit9c3ddee1246411a3c9c39bfa5457e49579027f0c
tree74efef8330fb7833afe1ae0a50b110b6f410bb6d
parent7ed4b4e60bb1dd3df7a45dfbde3a96efce9df7eb
bpftool: fix BTF raw dump of FWD's fwd_kind

kflag bit determines whether FWD is for struct or union. Use that bit.

Fixes: c93cc69004df ("bpftool: add ability to dump BTF types")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/bpftool/btf.c