foniod / redbpf

Rust library for building and running BPF/eBPF modules
Apache License 2.0
1.71k stars 136 forks source link

Fixes SockMap.value_size so that sockmaps can be dumped by bpftool #230

Closed murrayh closed 7 months ago

murrayh commented 3 years ago

bpftool reports a cryptic "No space left on device" error when attempting to dump a SockMap

image

This is because the value_size is 4B -- it needs to be 8B to work with bpftool.

With this change, the commands look like:

image

murrayh commented 3 years ago

Thank-you I have force pushed the the Sign off message