]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-linux.c
Pass IFF_ flags to add_addr_to_iflist().
[libpcap] / pcap-linux.c
index d48fb8c3227f468ad6855380f9f699d86dccf804..2d68539c1784907bd032e2405e1c570e81a48df8 100644 (file)
@@ -2290,8 +2290,7 @@ add_linux_if(pcap_if_list_t *devlistp, const char *ifname, int fd, char *errbuf)
         * Add an entry for this interface, with no addresses, if it's
         * not already in the list.
         */
-       if (find_or_add_dev(devlistp, name,
-           if_flags_to_pcap_flags(name, ifrflags.ifr_flags), NULL,
+       if (find_or_add_dev(devlistp, name, ifrflags.ifr_flags, NULL,
            errbuf) == NULL) {
                /*
                 * Failure.