No such file or directory net/bpf.h
Solution 1:
I think there's a typo in that instruction. It should be: /usr/include/pcap/bpf.h
and not /usr/include/pcap-bpf.h
since there's bpf.h
file provided by the pcap
library. So you need to install the library first:
sudo apt-get install libpcap0.8-dev
and then do:
ln -s /usr/include/pcap/bpf.h /usr/include/net/bpf.h