microsoft / xdp-for-windows

XDP speeds up networking on Windows
MIT License
371 stars 41 forks source link

ensure allocated L3/L4 headers are naturally aligned #630

Closed mtfriesen closed 3 months ago

mtfriesen commented 3 months ago

Ensure frames XDP allocates have naturally aligned L3/L4 headers. Because of the 14-byte L2 Ethernet header, subsequent headers will be misaligned for 32-bit fields if laid out naively.