aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-02-08 00:40:36 -0800
committerGuy Harris <gharris@sonic.net>2021-02-08 00:40:36 -0800
commitd28021cacb860722663e6402fe6aea37cd0de8a6 (patch)
tree2b330328af36fb6fd76595c926acee2b1f7a0075 /dumpcap.c
parent27cbb6852577a458b10d200714022af23c7a67a9 (diff)
"The device has been removed." can happen if it has, indeed, been removed.
So only tell the user to report that as an Npcap bug if they *haven't* removed the device.
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/dumpcap.c b/dumpcap.c
index b5100a9bfa..31c2f46f42 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -4153,7 +4153,8 @@ capture_loop_start(capture_options *capture_opts, gboolean *stats_known, struct
On OpenBSD, you get "read: I/O error" (EIO) in the same case.
With WinPcap and Npcap, you'll get
- "read error: PacketReceivePacket failed".
+ "read error: PacketReceivePacket failed" or
+ "PacketReceivePacket error: The device has been removed. (1617)".
Newer versions of libpcap map some or all of those to just
"The interface disappeared".
@@ -4196,7 +4197,8 @@ capture_loop_start(capture_options *capture_opts, gboolean *stats_known, struct
report_capture_error(cap_err_str,
"The network adapter on which the capture was being done "
"is no longer attached; the capture has stopped.\n\n"
- "This may be a bug in Npcap: please report it "
+ "If you have not removed that adapter, "
+ "this may be a bug in Npcap: please report it "
"as an issue at https://github.com/nmap/npcap/issues");
} else if (strcmp(cap_err_str, "The other host terminated the connection") == 0) {
report_capture_error(cap_err_str,