Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BPF support for FreeBSD #906

Merged
merged 1 commit into from
Feb 7, 2024
Merged

Add BPF support for FreeBSD #906

merged 1 commit into from
Feb 7, 2024

Commits on Feb 7, 2024

  1. Define constants for FreeBSD

    The FreeBSD [source
    code](https://github.com/freebsd/freebsd-src/blob/b8afdda360e5915be3c2cf0d1438f511779b03db/sbin/ipf/ipf/bpf-ipf.h#L159)
    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 in `smoltcp` when targeting FreeBSD.
    jamwaffles committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    340565e View commit details
    Browse the repository at this point in the history