Skip to content

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