microsoft / xdp-for-windows

XDP speeds up networking on Windows
MIT License
346 stars 40 forks source link

fix ebpf struct version validation #573

Closed mtfriesen closed 6 days ago

mtfriesen commented 6 days ago

eBPF extensions must validate the header version. Any change to the header version is a breaking change.

The use of header.size in version 1 0 of the extension data is a bug (it should be the size of the extension data struct, not the optional data) but XDP must continue relying on this behavior.