]> The Tcpdump Group git mirrors - libpcap/commitdiff
Add support for NdisMediumWirelessWan.
authorGuy Harris <[email protected]>
Tue, 11 Jun 2019 18:57:39 +0000 (11:57 -0700)
committerGuy Harris <[email protected]>
Tue, 11 Jun 2019 18:57:39 +0000 (11:57 -0700)
This should fix GitHub issue #824.

pcap-npf.c

index 9a90455bd989c575e66e789cb2d48e6a205d3873..f434e66ba2e04fd488ceac74f690133a47aa05c4 100644 (file)
@@ -1016,6 +1016,12 @@ pcap_activate_npf(pcap_t *p)
                p->linktype = DLT_PPI;
                break;
 
+#ifdef NdisMediumWirelessWan
+       case NdisMediumWirelessWan:
+               p->linktype = DLT_RAW;
+               break;
+#endif
+
        default:
                p->linktype = DLT_EN10MB;                       /*an unknown adapter is assumed to be ethernet*/
                break;