]> The Tcpdump Group git mirrors - libpcap/commitdiff
Squelch another warning.
authorGuy Harris <[email protected]>
Wed, 6 Nov 2019 03:19:12 +0000 (19:19 -0800)
committerGuy Harris <[email protected]>
Wed, 6 Nov 2019 03:19:12 +0000 (19:19 -0800)
pcap-npf.c

index 38fac09766d810c9d3800fad6e7ebcc7a8a1b621..11fbaee1ccb4b7afcdf2f7a16665824968e7eaff 100644 (file)
@@ -1706,6 +1706,12 @@ get_if_flags(const char *name, bpf_u_int32 *flags, char *errbuf)
                         */
                        *flags |= PCAP_IF_CONNECTION_STATUS_DISCONNECTED;
                        break;
+
+               default:
+                       /*
+                        * It's unknown whether it's connected or not.
+                        */
+                       break;
                }
        }
 #else