hping
hping copied to clipboard
Use pcap/bpf.h if available
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.
Also this PR overlap with #13. I'm fine with closing this if #13 gets merged.