]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
interfaces: mangle source MAC address on bonds for other OS too
authorVincent Bernat <bernat@luffy.cx>
Sun, 11 Aug 2013 20:11:51 +0000 (22:11 +0200)
committerVincent Bernat <bernat@luffy.cx>
Sun, 11 Aug 2013 20:11:51 +0000 (22:11 +0200)
src/daemon/interfaces.c

index 6fc8fbbcab020788cf57b24a2a63765ae255f2da..0d8d6d279ffe4f1bb4a9066a144e560836c95237 100644 (file)
@@ -529,6 +529,8 @@ interfaces_helper_physical(struct lldpd *cfg,
                                continue;
                        }
                        hardware->h_ops = ops;
+                       hardware->h_mangle = (iface->upper &&
+                           iface->upper->type & IFACE_BOND_T);
                        TAILQ_INSERT_TAIL(&cfg->g_hardware, hardware, h_entries);
                } else {
                        if (hardware->h_flags) continue; /* Already seen this time */