isovalent / ebpf-docs

An effort to comprehensively document eBPF
https://ebpf-docs.dylanreimerink.nl/
BSD 2-Clause "Simplified" License
177 stars 18 forks source link

Correction for bpf_for example #36

Closed berkentekin closed 2 months ago

berkentekin commented 3 months ago

The bpf_for macro needs an integer as the loop counter, not an integer pointer. Otherwise, we get a cast error from int to int*.