From: Guy Harris Date: Thu, 10 Jan 2019 18:18:47 +0000 (-0800) Subject: Revert "Do the same tests for "not supported" SIOCGIFMEDIA as is done elsewhere." X-Git-Tag: libpcap-1.10-bp~634 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/03225d646ab497de105032aeda22270a5b8293f7 Revert "Do the same tests for "not supported" SIOCGIFMEDIA as is done elsewhere." This reverts commit 0853992857112d8a1dbc4deae22c488a155eb73b. Those tests are necessary only with one networking driver on macOS; that code isn't used in macOS. --- diff --git a/pcap-bpf.c b/pcap-bpf.c index 167c5379..3ad7fafb 100644 --- a/pcap-bpf.c +++ b/pcap-bpf.c @@ -2898,15 +2898,9 @@ monitor_mode(pcap_t *p, int set) close(sock); return (PCAP_ERROR_NO_SUCH_DEVICE); - case EOPNOTUSPP: case EINVAL: - case ENOTTY: - case ENODEV: - case EPERM: /* * Interface doesn't support SIOC{G,S}IFMEDIA. - * (See above comment for why EPERM is interpreted - * as meaning "not supported".) */ close(sock); return (PCAP_ERROR_RFMON_NOTSUP);