Require pcap_create(), pcap_activate(), and pcap_set_XXX() API
functions added in libpcap 1.0 (WinPcap 4.1 beta4, 2008-05-27)
on Windows.
This means we don't need pcap_open_live versions of opening
a local capture device or checking its capabilities.
Since pcap_create is no longer optional, and we won't fall back to
calling the pcap_open_live versions of those functions when its
not available, check if wpcap.dll is loaded when calling pcap_create
on Windows as done when calling pcap_open_live.
Require the three libpcap 1.0 API functions that WinPcap 4.1.3 fails to
export. This makes WinPcap no longer supported. We do load WinPcap just
enough to read the version, determine that the user has it installed,
and customize the "you don't have a packet capture driver installed"
messages.
Ping #20261
Ran `tools/convert-glib-types.py` over the files in `doc/` and
`docbook/`, then manually checked/massaged/reverted results as
appropriate.
One small step towards addressing #19116
GLib 2.76 deprecated G_MODULE_SUFFIX, so just use ".dll" on Windows and
".so" elsewhere. It also deprecated g_module_build_path, so just use
g_strconcat.
ws_module_open was only used to open wpcap.dll, so rename it to
load_wpcap_module.
We aren't using them now; stick to libpcap APIs (including Windows-only
libpcap APIs).
Change-Id: I812eaa31ba1e6e611418853105d3e00c9130a420
Reviewed-on: https://code.wireshark.org/review/37852
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
LoadLibrary and g_module_open only for the program directory and system
directory on Windows. Use them to replace a bunch of LoadLibrary and
g_module_open calls. Use the extension ".dll" for all the DLLs that we
load. Add comments about DLL loading in Python.
svn path=/trunk/; revision=33924
this way, the capture prefix will "logically" group the files together and file browsers will also group them
we may want to move the files into a subdir capture later
svn path=/trunk/; revision=16691
they have LF at the end of the line on UN*X and CR/LF on Windows;
hopefully this means that if a CR/LF version is checked in on Windows,
the CRs will be stripped so that they show up only when checked out on
Windows, not on UN*X.
svn path=/trunk/; revision=11400