]> The Tcpdump Group git mirrors - libpcap/commitdiff
NPF: expand a comment. [skip ci]
authorGuy Harris <[email protected]>
Mon, 8 Feb 2021 07:29:53 +0000 (23:29 -0800)
committerGuy Harris <[email protected]>
Mon, 8 Feb 2021 21:16:22 +0000 (13:16 -0800)
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)

pcap-npf.c

index f12c70187506d39bbe44b9cead5feb1d47d04119..6da18094e0e7114c0c7f40dc9b1a767e70384025 100644 (file)
@@ -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.