]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
interfaces: put the appropriate aggregation ID when an interface is enslaved
authorVincent Bernat <vincent.bernat@dailymotion.com>
Fri, 28 Dec 2012 16:46:39 +0000 (17:46 +0100)
committerVincent Bernat <vincent.bernat@dailymotion.com>
Fri, 28 Dec 2012 16:46:39 +0000 (17:46 +0100)
On *BSD, this was not done elsewhere.

src/daemon/interfaces.c

index c2c75cb6946321ddf3131670b29a4cadec31485b..c5fac4d987a905ae8b5da863d4427a47b79f9738 100644 (file)
@@ -546,5 +546,10 @@ interfaces_helper_physical(struct lldpd *cfg,
 
                /* Fill additional info */
                hardware->h_mtu = iface->mtu ? iface->mtu : 1500;
+
+#ifdef ENABLE_DOT3
+               if (iface->upper && iface->upper->type & IFACE_BOND_T)
+                       hardware->h_lport.p_aggregid = iface->upper->index;
+#endif
        }
 }