17 Commits

Author SHA1 Message Date
John Thacker
59c72ca333 capture: Drop support for WinPcap
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
2025-01-07 11:46:40 +00:00
David Perry
5789bc7977 Use C99 instead of GLib types in doc+docbook
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
2023-10-31 21:22:03 +00:00
Gerald Combs
1ffff913de wsutil: Switch away from G_MODULE_SUFFIX and g_module_build_path
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.
2023-04-11 22:54:27 +00:00
Guy Harris
608835bf56 Don't call any routines from WinPcap/Npcap packet32.dll.
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>
2020-07-14 07:30:59 +00:00
Gerald Combs
8b977a43d6 Move condition logic to dumpcap.c
Move the condition logic from capture_stop_conditions.c to dumpcap.c.
Remove capture_stop_conditions.[ch] and conditions.[ch].

Switch duration values to doubles.

Change-Id: Ifa74fb13ec8fc923b0721597a6cf071d72069ea0
Reviewed-on: https://code.wireshark.org/review/30440
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-11-01 05:09:10 +00:00
Gerald Combs
974a15bf74 Docs: Remove a bunch of GTK+ references.
Change-Id: Icab98813d0b81a7337562e9857429d4bb98dc44c
Reviewed-on: https://code.wireshark.org/review/26817
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2018-04-09 05:02:12 +00:00
Jeff Morriss
b6a9b8494c Remove $Id$ and other Subversion leftovers from the doc files.
Change-Id: I28a376f7e0fd90971f65ae9c1105a3ec85221470
Reviewed-on: https://code.wireshark.org/review/204
Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
2014-02-14 01:33:14 +00:00
Gerald Combs
607b228df6 Add ws_load_library and ws_module_open, which respectively call
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
2010-08-25 20:30:59 +00:00
Stig Bjørlykke
5a58a1435c From Andrew Feren:
Fix an assortment of typos and other minor errors in various README files

svn path=/trunk/; revision=23166
2007-10-12 19:13:31 +00:00
Ulf Lamping
11c289ecc3 fix #1063, some leftover typo's: Etheral -> Wireshark
svn path=/trunk/; revision=19053
2006-08-27 11:46:02 +00:00
Gerald Combs
eb71f7fb96 Rename the main executable to "wireshark", along with more conversions:
ethereal.com -> wireshark.org
  mailing lists and addresses
  ETHEREAL -> WIRESHARK
  Man pages
  Automake/Autoconf names


svn path=/trunk/; revision=18271
2006-05-31 19:12:15 +00:00
Ulf Lamping
7e3a24418c rename pcap-....c/.h files to capture-pcap-....c/.h
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
2005-12-06 00:07:13 +00:00
Ulf Lamping
8549096f37 update text to reflect the current implementation (e.g. we don't have normal/sync mode any longer)
svn path=/trunk/; revision=14762
2005-06-26 09:14:12 +00:00
Guy Harris
8a8b883450 Set the svn:eol-style property on all text files to "native", so that
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
2004-07-18 00:24:25 +00:00
Ulf Lamping
22b253fb30 reflect latest changes to capture.c
svn path=/trunk/; revision=9960
2004-02-02 23:55:41 +00:00
Guy Harris
ae7fb39bd7 Give it an RCS ID.
svn path=/trunk/; revision=9706
2004-01-18 03:48:19 +00:00
Ulf Lamping
74dc0a97b5 First attempt to make a description of the capturing things
svn path=/trunk/; revision=9691
2004-01-17 11:10:59 +00:00