WinPcap adds some APIs not available in libpcap (and versions of libpcap newer than the version upon which the latest WinPcap release is based have APIs not available in WinPcap).
pcap_open()
is one of those APIs; it is NOT available in libpcap. You must either use pcap_open_live()
or, in libpcap 1.x, pcap_create()
and pcap_activate()
.
libpcap also doesn't currently support remote packet capture.