Wrong iphdr and tcphdr mapping #2637
Labels
bug
Something isn't working
good first issue
Good for newcomers
triaged
Discussed in a triage meeting
Milestone
Describe the bug
l3af-project/eBPF-Package-Repository#54 is failing which tries to use iphdr and tcphdr in cross-platform code.
https://github.com/microsoft/ebpf-for-windows/blob/main/include/net/ip.h#L94 defines it as _IPV4_HEADER, but the field names in that struct don't match the expected field names in iphdr which is causing the windows test failures in l3af-project/eBPF-Package-Repository#54.
OS information
No response
Steps taken to reproduce bug
Try to compile l3af-project/eBPF-Package-Repository#54
Expected behavior
Build should succeed
Actual outcome
Build fails
Additional details
https://github.com/microsoft/ebpf-for-windows/blob/main/include/net/tcp.h#L11 has
data_offset
instead ofdoff
The text was updated successfully, but these errors were encountered: