wireshark/capture
Guy Harris 3cc9d33f65 Improve reporting of libpcap errors.
Expand the set of CAP_DEVICE_OPEN_ errors and warnings to include
specific errors for many of the errors and warnings libpcap returns.
(This doesn't include the errors that would definitely either be
Wireshark or libpcap bugs, such as PCAP_ERROR_NOT_ACTIVATED and
PCAP_ERROR_ACTIVATED.)

Don't give "make sure you have the right permissions" secondary error
messages if we know that the error isn't a permissions error.

For the PCAP_ERROR_ codes that we handle individually, don't bother with
the pcap_statustostr() string, as it would duplicate the error message
we're providing.

For the PCAP_ERROR_ codes we *don't* handle individually, give both the
pcap_statustostr() string and the pcap_geterr() string, to give the user
as much information as possible (even if that's just so that they can
give *us* as much information as possible to figure out what the problem
is).

This should remove the "how to support packet capturing on Debian"
message for "sorry, we don't support PF_PACKET sockets" error that shows
up if either 1) your kernel doesn't have PF_PACKET support configured in
or 2) this is a Flatpak package of Wireshark that's "helpfully" been
sandboxed.  See issue #19008.
2023-04-20 00:46:47 -07:00
..
.editorconfig
CMakeLists.txt CMake: Fix libnl unused link dependencies 2023-02-06 15:04:46 +00:00
airpcap.h Revert "A small for for the Doxygen warning:" 2022-06-20 09:56:54 +00:00
airpcap_loader.c Windows: Fix build 2022-02-24 20:29:04 +00:00
airpcap_loader.h Windows: Fix build 2022-02-24 20:29:04 +00:00
capture-pcap-util-int.h capture: Add header files to Doxygen 2021-11-30 06:27:26 +00:00
capture-pcap-util-unix.c Remove wspcap.h and use config.h instead 2023-02-06 15:05:36 +00:00
capture-pcap-util.c Improve reporting of libpcap errors. 2023-04-20 00:46:47 -07:00
capture-pcap-util.h Improve reporting of libpcap errors. 2023-04-20 00:46:47 -07:00
capture-wpcap.c wsutil: Switch away from G_MODULE_SUFFIX and g_module_build_path 2023-04-11 22:54:27 +00:00
capture-wpcap.h capture: Add header files to Doxygen 2021-11-30 06:27:26 +00:00
capture_ifinfo.c Replace g_strdup_printf() with ws_strdup_printf() 2021-12-19 21:21:58 +00:00
capture_ifinfo.h capture: Add header files to Doxygen 2021-11-30 06:27:26 +00:00
capture_session.h capture: Convert sync pipe to GIOChannel 2022-10-23 13:17:10 +02:00
capture_sync.c capture: Merge common code in capture_sync 2023-03-14 08:45:13 +00:00
capture_sync.h Clean up handling of --capture-comment. 2021-07-15 05:43:36 +00:00
capture_win_ifnames.c Refactor our logging and extend the wslog API 2021-06-11 09:40:28 +00:00
capture_win_ifnames.h capture: Add header files to Doxygen 2021-11-30 06:27:26 +00:00
iface_monitor.c Replace g_snprintf() with snprintf() 2021-12-19 20:06:13 +00:00
iface_monitor.h capture: Add header files to Doxygen 2021-11-30 06:27:26 +00:00
ws80211_utils.c Remove wsutil/netlink.h workaround 2023-02-06 15:04:46 +00:00
ws80211_utils.h capture: Add header files to Doxygen 2021-11-30 06:27:26 +00:00