]> The Tcpdump Group git mirrors - libpcap/commitdiff
Either EOPNOTSUPP or EINVAL mean "that ioctl isn't supported".
authorGuy Harris <[email protected]>
Tue, 1 May 2018 06:51:28 +0000 (23:51 -0700)
committerGuy Harris <[email protected]>
Tue, 1 May 2018 06:51:28 +0000 (23:51 -0700)
pcap-bpf.c

index 5b884caa1937dc6e4ba004af03f7c578efc89d82..65dc9ed20410ccc7d4ab6831275303f6674f50d9 100644 (file)
@@ -2747,7 +2747,7 @@ get_if_flags(const char *name, bpf_u_int32 *flags, char *errbuf)
        memset(&req, 0, sizeof(req));
        strncpy(req.ifm_name, name, sizeof(req.ifm_name));
        if (ioctl(sock, SIOCGIFMEDIA, &req) < 0) {
-               if (errno == EOPNOTSUPP) {
+               if (errno == EOPNOTSUPP || errno == EINVAL) {
                        /*
                         * Not supported, so we can't provide any
                         * additional information.  Assume that