]> The Tcpdump Group git mirrors - libpcap/commitdiff
Call get_if_flags().
authorGuy Harris <[email protected]>
Mon, 30 Apr 2018 01:43:35 +0000 (18:43 -0700)
committerGuy Harris <[email protected]>
Mon, 30 Apr 2018 01:43:35 +0000 (18:43 -0700)
pcap-npf.c

index 4def1f19e2341a333c578ec7112eabf89b241a2c..dbf2b617282e454d5237825e6213ab36fa5ea33a 100644 (file)
@@ -1712,14 +1712,16 @@ pcap_platform_finddevs(pcap_if_list_t *devlistp, char *errbuf)
                        flags |= PCAP_IF_LOOPBACK;
                }
 #endif
-
                /*
-                * XXX - get the link state here.
-                * Does the OID we want depend on NDIS 5 vs. NDIS 6?
-                * If so, that means that there should be a packet.dll
-                * API for this.
-                * Set the appropriate bits in flags.
+                * Get additional flags.
                 */
+               if (get_if_flags(name, &flags, errbuf) == -1) {
+                       /*
+                        * Failure.
+                        */
+                       ret = -1;
+                       break;
+               }
 
                /*
                 * Add an entry for this interface.