]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-nit.c
Pass the "get additional flags" function to the findalldevs helpers.
[libpcap] / pcap-nit.c
index be5a20e0a2ce71e00ed5d1b38a9f82a487227bc9..6a1a77c24c681585c3d54472839000cc3527a40f 100644 (file)
@@ -389,7 +389,7 @@ can_be_bound(const char *name _U_)
        return (1);
 }
 
-int
+static int
 get_if_flags(const char *name _U_, bpf_u_int32 *flags _U_, char *errbuf _U_)
 {
        /*
@@ -403,7 +403,8 @@ get_if_flags(const char *name _U_, bpf_u_int32 *flags _U_, char *errbuf _U_)
 int
 pcap_platform_finddevs(pcap_if_list_t *devlistp, char *errbuf)
 {
-       return (pcap_findalldevs_interfaces(devlistp, errbuf, can_be_bound));
+       return (pcap_findalldevs_interfaces(devlistp, errbuf, can_be_bound,
+           get_if_flags));
 }
 
 /*