Joe Wein
Fighting spam and scams
on the Internet

Home / Blog / About us
Spam
419/Nigeria
Online fraud
jwSpamSpy
Contact

Email Spam Filter:
jwSpamSpy
Try it for free!

Google
 

"net/bpf.h: No such file or directory" error when making hping

Problem: When building the hping tool on RedHat Linux, it fails with the following error message:

libpcap_stuff.c:20:21: net/bpf.h: No such file or directory. 

Explanation:
The build is looking for an include file, which is in the wrong place under the wrong file name when downloading and installing libpcap from tcpdump.org.

Solution:

ln -s /usr/include/pcap-bpf.h /usr/include/net/bpf.h