]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-null.c
Add more interface flags to pcap_findalldevs().
[libpcap] / pcap-null.c
index 92a5e2d8649b657bfbd8ce8eeb12b8eb4e9b2ec8..2f614837ed3bf172e3588c4f43c35dc06b6119a9 100644 (file)
@@ -36,6 +36,17 @@ pcap_create_interface(const char *device _U_, char *ebuf)
        return (NULL);
 }
 
+int
+get_if_flags(const char *name _U_, bpf_u_int32 flags _U_, char *errbuf _U_)
+{
+       /*
+        * Nothing we can do.
+        * XXX - is there a way to find out whether an adapter has
+        * something plugged into it?
+        */
+       return (0);
+}
+
 int
 pcap_platform_finddevs(pcap_if_list_t *devlistp, char *errbuf)
 {