diff options
author | cmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-11-16 21:08:08 +0000 |
---|---|---|
committer | cmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-11-16 21:08:08 +0000 |
commit | c562038c5d4c36726b5452f1d51efe0876b19dd9 (patch) | |
tree | 430de8b086f6611179a1c9945fc7674cc204f510 /dumpcap.c | |
parent | c3b30d21f35cabdabb83ab3753bac089d78be917 (diff) |
If pcap_geterr() returns "read error: PacketReceivePacket failed", report that
the "network adapter on which the capture was being done is no longer running".
Fixes bug 2623 reported by Anthony Coulter.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34915 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'dumpcap.c')
-rw-r--r-- | dumpcap.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3097,7 +3097,8 @@ capture_loop_start(capture_options *capture_opts, gboolean *stats_known, struct cap_err_str = pcap_geterr(global_ld.pcap_h); if (strcmp(cap_err_str, "recvfrom: Network is down") == 0 || strcmp(cap_err_str, "read: Device not configured") == 0 || - strcmp(cap_err_str, "read: I/O error") == 0) { + strcmp(cap_err_str, "read: I/O error") == 0 || + strcmp(cap_err_str, "read error: PacketReceivePacket failed") == 0) { report_capture_error("The network adapter on which the capture was being done " "is no longer running; the capture has stopped.", ""); |