I installed the pcap library on my linux system but when including it I get the errors
/usr/include/pcap/bpf.h:88:1: error: unknown type name ‘u_int’ /usr/incl
Try adding
-D_BSD_SOURCE
az a CFLAG to your Makefile.