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 FreeBSD support, as well as fix a few bugs found while compiling in FreeBSD #123

Merged
merged 4 commits into from
Oct 28, 2018

Conversation

n1000
Copy link
Member

@n1000 n1000 commented Oct 25, 2018

Add FreeBSD support. In most cases, this was just adding a "|| defined (FreeBSD)" next to existing BSD related compile checks.

Add a few missing parenthesis around some macro bodies, which were noticed by the default FreeBSD clang compiler.

Switch the bpf_length to unsigned, instead of signed. The BPF man page for all supported OSes indicates it should be unsigned, and as a buffer length, unsigned makes the most sense.

Fixes #122.

@n1000 n1000 merged commit 3240852 into qca:master Oct 28, 2018
@n1000 n1000 deleted the freebsd branch October 9, 2020 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant