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

Clean Up Includes #58

Merged
merged 3 commits into from
Feb 24, 2025
Merged

Clean Up Includes #58

merged 3 commits into from
Feb 24, 2025

Conversation

gamemann
Copy link
Owner

@gamemann gamemann commented Feb 24, 2025

This is another PR that cleans up includes and improves and organizes a couple of other things. Initially, my goal was to make it so when using the static option, it wouldn't require LibXDP and LibBPF to be installed on your system all together. However, there are a couple of source files in the LibXDP submodule that relies on specific headers within the /usr/include and /usr/local/include include paths (where LibXDP and LibBPF header files are installed to) which causes an error when not having LibXDP and LibBPF installed on your system.

I encountered this issue on a vanilla VM I made running Debian 12 to build and install XDP Firewall without having LibXDP installed on the system as well (no static build). Therefore, I believe the best choice is to enable the static option when building by default. There are a couple of positives when building using the no static option (faster build, etc.), so I wanted to leave the option there for those interested.

Additionally, I've made a few other small changes like renaming variable names and altering the verbose output.

@gamemann gamemann merged commit 801cb3b into master Feb 24, 2025
3 checks passed
@gamemann gamemann deleted the 20250224-include-improvements branch February 24, 2025 22:56
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