Winpcap?Manual??????????,??FAQ???????
Q-23: If I try to compile my application using the new pcap APIs
provided in WinPcap 3.1beta, the compiler fails with "warning C4013:
'pcap_???' undefined" or "error C2065: 'PCAP_OPENFLAG_????' : undeclared
identifier". What's the problem?
A: The following new pcap APIs provided in WinPcap 3.1beta work only if
"HAVE_REMOTE" is defined:
* pcap_open()
* pcap_findalldevs_ex()
* pcap_createsrcstr()
* pcap_parsesrcstr()
* pcap_setsampling()
* pcap_remoteact_accept()
* pcap_remoteact_list()
* pcap_remoteact_close()
* pcap_remoteact_cleanup()
You can define HAVE_REMOTE
* in your source/header files, with #define HAVE_REMOTE, before
including pcap.h
* through a compiler/project option
-----------------------------
wangyao,wan...@cs.hit.edu.cn
2006?10?15?