Configure whether we have WinPcap based on whether WINPCAP_VERSION is
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 10 Oct 2003 09:48:54 +0000 (09:48 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 10 Oct 2003 09:48:54 +0000 (09:48 +0000)
commit871fde755c281a1e90527d789cd2f47811631b12
tree0c7c8669aefcea2eedb7451ef282073bdcfdc134
parent3c17ed8fb978239481166c2b891c7715ff13f13a
Configure whether we have WinPcap based on whether WINPCAP_VERSION is
set in the config.nmake file.

Configure whether we have pcap_findalldevs() based on whether
WINPCAP_VERSION is 2.3 (if so, we don't) or 3.0 or 3.1 (if so, we do).

WinPcap 3.0 has the new libpcap declarations of "pcap_lookupnet()" and
"pcap_open_live()" in which the first argument is a "const char *"
rather than a "char *"; declare the functions and pointers to them
appropriately based on the version of WinPcap.

If we don't have pcap_findalldevs(), don't declare a pointer to it, as
we don't have a declaration of pcap_if_t.

We also need to refer to "pcap_freealldevs()", so make a pointer for it.

"symbols[]" is a const array; make the pointer to elements in it a const
pointer.

Fix some typoes.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8660 f5534014-38df-0310-8fa8-9805f1628bb7
Makefile.nmake
capture-wpcap.c
config.h.win32
config.nmake