aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2010-11-16 21:08:08 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2010-11-16 21:08:08 +0000
commit3595bb02933691d19b163548c5cd0e246d67df70 (patch)
tree430de8b086f6611179a1c9945fc7674cc204f510
parent2bb0b3fa195cd31ac3e3d62563a4890ad231a574 (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. svn path=/trunk/; revision=34915
-rw-r--r--dumpcap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dumpcap.c b/dumpcap.c
index 7826cd89ae..f323f43ccc 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -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.",
"");