On Tue, Jul 17, 2018 at 05:27:43PM -0700, Jakub Kicinski wrote:
> On Wed, 18 Jul 2018 01:31:22 +0200, Daniel Borkmann wrote:
> > # bpftool map dump id 386
> > [{
> > "key": 0,
> > "value": {
> > "": {
> > "value": 0,
> > "ifindex": 0,
> > "mac": []
> > }
> > }
> > },{
> > "key": 1,
> > "value": {
> > "": {
> > "value": 0,
> > "ifindex": 0,
> > "mac": []
> > }
> > }
> > },{
> > [...]
>
> Ugh, the empty keys ("") look worrying, we should probably improve
> handling of anonymous structs in bpftool :S
Note that the kernel's btf_verifier_log is using "(anon)" in this case.
Not sure if it is a good idea for json.
- [PATCH iproute2 0/5] Various BPF improvements Daniel Borkmann
- [PATCH iproute2 5/5] bpf: implement btf handling and... Daniel Borkmann
- Re: [PATCH iproute2 5/5] bpf: implement btf hand... Jakub Kicinski
- Re: [PATCH iproute2 5/5] bpf: implement btf ... Daniel Borkmann
- Re: [PATCH iproute2 5/5] bpf: implement ... Daniel Borkmann
- Re: [PATCH iproute2 5/5] bpf: imple... Jakub Kicinski
- Re: [PATCH iproute2 5/5] bpf: i... Martin KaFai Lau
- Re: [PATCH iproute2 5/5] bp... Daniel Borkmann
- Re: [PATCH iproute2 5/5] bp... Martin KaFai Lau
- Re: [PATCH iproute2 5/5] bpf: implement btf ... Martin KaFai Lau
- Re: [PATCH iproute2 5/5] bpf: implement ... Jakub Kicinski
- [PATCH iproute2 3/5] bpf: remove strict dependency o... Daniel Borkmann
- [PATCH iproute2 2/5] bpf: move bpf_elf_map fixup not... Daniel Borkmann
- Re: [PATCH iproute2 2/5] bpf: move bpf_elf_map f... Jakub Kicinski
- [PATCH iproute2 1/5] bpf: import btf uapi kernel hea... Daniel Borkmann
- [PATCH iproute2 4/5] bpf: implement bpf to bpf calls... Daniel Borkmann
- Re: [PATCH iproute2 0/5] Various BPF improvements David Ahern
