From: Guy Harris Date: Mon, 8 Feb 2021 07:29:53 +0000 (-0800) Subject: NPF: expand a comment. [skip ci] X-Git-Tag: libpcap-1.10.1~87 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/d0908c06e1121f0948d9afb98fe70f946e6ccd8d NPF: expand a comment. [skip ci] Indicate which NT status code returned by the Npcap driver turns into ERROR_GEN_FAILURE, because Microsoft sure doesn't bother to do that conveniently. (cherry picked from commit 9397b6a37ca57c4e8d4bf984bf4a2edb6cfc5353) --- diff --git a/pcap-npf.c b/pcap-npf.c index f12c7018..6da18094 100644 --- a/pcap-npf.c +++ b/pcap-npf.c @@ -549,6 +549,11 @@ pcap_read_npf(pcap_t *p, int cnt, pcap_handler callback, u_char *user) if (errcode == ERROR_GEN_FAILURE) { /* + * (This comes from STATUS_UNSUCCESSFUL, + * as well as some other NT status codes + * that the Npcap driver is unlikely + * to return.) + * * The device on which we're capturing * went away, or it became unusable * by NPF due to a suspend/resume.