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

Use pcap/bpf.h if available #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

dpino
Copy link

@dpino dpino commented Oct 14, 2018

In my system bpf.h is provided by pcap and lives at /usr/include/pcap/bpf.h. Hping expects to find bpf.h at net/bpf.h.

The patch modified configure to check whether /usr/include/pcap/bpf.h and in that case defines a defined (USE_PCAP_BPF), which is taking into account when importing bpf.h.

@dpino
Copy link
Author

dpino commented Oct 14, 2018

Also this PR overlap with #13. I'm fine with closing this if #13 gets merged.

Copy link

@hackman hackman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change worked for me, but in addition I added the following line in configure, to show the selected BPF.
135 echo "USE_PCAP_BPF : $USE_PCAP_BPF"

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.

2 participants