mirror of https://github.com/aya-rs/aya
Have bpf_map_update_elem take Option<&K> for key
bpf_map_update_elem is used in lieu of bpf_map_push_elem to maintain support for kernel version < 4.20. The kernel expects a null pointer for the key for this use case. With this change, if you pass None as key to `bpf_map_update_elem`, it will pass null as key.pull/328/head
parent
150dc1b610
commit
36edf09254
Loading…
Reference in New Issue