]> The Tcpdump Group git mirrors - libpcap/commitdiff
Revert "Do the same tests for "not supported" SIOCGIFMEDIA as is done elsewhere."
authorGuy Harris <[email protected]>
Thu, 10 Jan 2019 18:18:47 +0000 (10:18 -0800)
committerGuy Harris <[email protected]>
Thu, 10 Jan 2019 18:18:47 +0000 (10:18 -0800)
This reverts commit 0853992857112d8a1dbc4deae22c488a155eb73b.

Those tests are necessary only with one networking driver on macOS; that
code isn't used in macOS.

pcap-bpf.c

index 167c53798073a4d07d41ef8bf2a1ae1c0daf731e..3ad7fafb986e6ce9b3534e4bbb69f1c239d6b4cc 100644 (file)
@@ -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);