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
Make sure you do NOT define any of:
__STRICT_ANSI___ISOC99_SOURCE_POSIX_SOURCE_POSIX_C_SOURCE_XOPEN_SOURCE_SVID_SOURCEwhen building your program; they may prevent the BSD data types, such as the ones the compile is complaining about, from being defined.
Try adding
-D_BSD_SOURCE
az a CFLAG to your Makefile.