]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Some virtual ethernet interfaces do not have IFF_MULTICAST flag. We
authorVincent Bernat <vbernat.ext@orange-ftgroup.com>
Tue, 17 Mar 2009 14:01:40 +0000 (15:01 +0100)
committerVincent Bernat <vbernat.ext@orange-ftgroup.com>
Tue, 17 Mar 2009 14:01:40 +0000 (15:01 +0100)
use them if they have at least the IFF_BROADCAST flag. This is useful
for Xen Dom0 to get LLDP information from DomU.

src/lldpd.c

index b2347c225cf6c4306be375b78c55cc5eebd1403c..5d4222ec8156b23d78b4f7a806a28600b6a78cba 100644 (file)
@@ -1347,7 +1347,7 @@ lldpd_loop(struct lldpd *cfg)
                    (iface_is_bond(cfg, ifa->ifa_name)))
                        continue;
 
-                if (!(ifa->ifa_flags & IFF_MULTICAST))
+                if (!(ifa->ifa_flags & (IFF_MULTICAST|IFF_BROADCAST)))
                         continue;
 
                if (iface_is_wireless(cfg, ifa->ifa_name))