Closed jamwaffles closed 4 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
5eced2a
) 79.92% compared to head (340565e
) 79.92%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Rapid! Thank you!
Adds support for FreeBSD to
bpf.rs
. This was tested on a FreeBSD system with an EtherCrab example which involves some reasonably complex networking.The FreeBSD source code defines
SIZEOF_BPF_HDR
as 18 bytes, however during testing on a FreeBSD 14 system it was found that the size is actually 24 bytes, so that is what is used here insmoltcp
when targeting FreeBSD. I'm open to corrections as I don't like just going of empirical evidence, but 18 bytes definitely did not work for the code I was testing with.The other constants were checked against the FreeBSD source code and are correct, so those were just a matter of adding the
target_os
cfg
parameters.