]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
interfaces/linux: make dsa special
authorBrandon Streiff <brandon.streiff@ni.com>
Mon, 16 Jul 2018 21:53:56 +0000 (16:53 -0500)
committerVincent Bernat <vincent@bernat.ch>
Thu, 10 Jan 2019 16:22:35 +0000 (11:22 -0500)
There used to be specific exemptions carved out for "veth" and "dsa",
which were removed in b8db52bd7c7d ("interfaces/linux: blacklist some
drivers instead of whitelisting"). "veth" was restored in 2958b9d48940
("interfaces/linux: make veth special"). This commit restores the
whitelist for dsa devices as well.

src/daemon/interfaces-linux.c

index dff321902611e022259443acf5f82c50cd5b7603..9af41a58d363759c470a0216ed2b295d16734fe2 100644 (file)
@@ -994,7 +994,7 @@ iflinux_add_physical(struct lldpd *cfg,
                }
 
                /* If the interface is linked to another one, skip it too. */
-               if (iface->lower && (!iface->driver || strcmp(iface->driver, "veth"))) {
+               if (iface->lower && (!iface->driver || (strcmp(iface->driver, "veth") && strcmp(iface->driver, "dsa")))) {
                        log_debug("interfaces", "skip %s: there is a lower interface (%s)",
                            iface->name, iface->lower->name);
                        continue;