]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-snit.c
Pass the "get additional flags" function to the findalldevs helpers.
[libpcap] / pcap-snit.c
index 1122e3a236746c57b9fac8e2c48d7faf2c446361..9c6fbd48e7b83f62b2f7ff009537ec4ddf398dd9 100644 (file)
@@ -478,7 +478,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_)
 {
        /*
@@ -492,7 +492,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));
 }
 
 /*