]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-libdlpi.c
Pass the "get additional flags" function to the findalldevs helpers.
[libpcap] / pcap-libdlpi.c
index 327cef2d540a6db565d8b1b4c198b6e1df4e817d..ad25e6592245316b1e0569c67838c4d796e9f103 100644 (file)
@@ -287,7 +287,7 @@ is_dlpi_interface(const char *name _U_)
        return (1);
 }
 
-int
+static int
 get_if_flags(const char *name _U_, bpf_u_int32 *flags _U_, char *errbuf _U_)
 {
        /*
@@ -316,7 +316,7 @@ pcap_platform_finddevs(pcap_if_list_t *devlistp, char *errbuf)
         * Get the list of regular interfaces first.
         */
        if (pcap_findalldevs_interfaces(devlistp, errbuf,
-           is_dlpi_interface) == -1)
+           is_dlpi_interface, get_if_flags) == -1)
                return (-1);    /* failure */
 
        /* dlpi_walk() for loopback will be added here. */