wireshark/caputils
Guy Harris 1ac358c99d Don't close the pcap_t in get_data_link_types().
1) Its caller closes it, and closing a closed pcap_t can cause Bad
Things to happen.

2) We're trying to get an error string from it after we're closing it,
which won't work well, either.

While we're at it, don't use pcap_statustostr() if we don't have it (we
have it iff we have pcap_create()).

Change-Id: Ieded1e3ae78aea4e0970cf582e780c2846fe9dd5
Reviewed-on: https://code.wireshark.org/review/20443
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2017-03-07 22:09:30 +00:00
..
.editorconfig Add EditorConfig settings for most C files 2016-03-08 10:46:35 +00:00
CMakeLists.txt cmake: make WERROR_COMMON_FLAGS a normal string 2016-09-30 20:08:02 +00:00
Makefile.am Remove Makefile.common files 2016-06-30 11:04:17 +00:00
airpcap.h Allow a lot more C99 features 2016-09-06 02:42:27 +00:00
airpcap_loader.c g_malloc -> g_malloc0 where not all struct elements are initialized or 2017-02-22 21:53:36 +00:00
airpcap_loader.h Try to fix: warning C6244: Local declaration of 'airpcap_if_list' hides 2015-07-02 15:28:03 +00:00
capture-pcap-util-int.h Move more capture device handling to the caputils library. 2016-01-07 04:38:39 +00:00
capture-pcap-util-unix.c g_malloc -> g_malloc0 where not all struct elements are initialized or 2017-02-22 21:53:36 +00:00
capture-pcap-util.c Don't close the pcap_t in get_data_link_types(). 2017-03-07 22:09:30 +00:00
capture-pcap-util.h Don't declare libpcap wrappers if we're not building with libpcap. 2016-01-07 05:29:05 +00:00
capture-wpcap.c Move npf_sys_is_running() from wsutil to caputils. 2016-06-03 21:24:47 +00:00
capture-wpcap.h Move npf_sys_is_running() from wsutil to caputils. 2016-06-03 21:24:47 +00:00
capture_ifinfo.h Fix retrieval of data link type supported by remote interfaces with authentication 2015-07-22 07:10:10 +00:00
capture_win_ifnames.c Remove unnecessary includes. 2016-01-06 00:14:32 +00:00
capture_win_ifnames.h
capture_wpcap_packet.c
capture_wpcap_packet.h
doxygen.cfg.in
iface_monitor.c Include ws_diag_control.h in config.h 2016-04-04 23:05:31 +00:00
iface_monitor.h Allow the interface monitor routines to be called from C++. 2014-07-16 02:28:39 +00:00
ws80211_utils.c Fix the signature of the stub version of ws80211_set_freq(). 2016-09-08 18:38:41 +00:00
ws80211_utils.h dumpcap: change types. 2016-09-08 18:31:14 +00:00