]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
interfaces/linux: remove interface blacklisting
authorVincent Bernat <vincent@bernat.im>
Sat, 30 Jan 2016 12:10:05 +0000 (13:10 +0100)
committerVincent Bernat <vincent@bernat.im>
Sat, 30 Jan 2016 12:10:05 +0000 (13:10 +0100)
Once there is a candidate to be blacklisted, we can restore the
code. Meantime, less code, less bugs.

src/daemon/interfaces-linux.c

index 2d1faabb1631219044835fdae6a96aa22f43c0b2..6ceddaa3de546cd7c78fd018b171ef468858b03e 100644 (file)
@@ -705,11 +705,6 @@ iflinux_add_physical(struct lldpd *cfg,
     struct interfaces_device_list *interfaces)
 {
        struct interfaces_device *iface;
-       /* Blacklist some drivers */
-       const char * const *rif;
-       const char * const blacklisted_interfaces[] = {
-               NULL
-       };
 
        TAILQ_FOREACH(iface, interfaces, next) {
                if (iface->type & (IFACE_VLAN_T|
@@ -726,20 +721,6 @@ iflinux_add_physical(struct lldpd *cfg,
                        continue;
                }
 
-               /* Check if the driver is whitelisted */
-               if (iface->driver) {
-                       int skip = 0;
-                       for (rif = blacklisted_interfaces; *rif; rif++) {
-                               if (strcmp(iface->driver, *rif) == 0) {
-                                       log_debug("interfaces", "skip %s: blacklisted driver",
-                                           iface->name);
-                                       skip = 1;
-                                       break;
-                               }
-                       }
-                       if (skip) continue;
-               }
-
                /* If the interface is linked to another one, skip it too. */
                if (iface->lower) {
                        log_debug("interfaces", "skip %s: there is a lower interface (%s)",