hping icon indicating copy to clipboard operation
hping copied to clipboard

Use pcap/bpf.h if available

Open dpino opened this issue 7 years ago • 1 comments

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 avatar Oct 14 '18 18:10 dpino

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

dpino avatar Oct 14 '18 18:10 dpino