From: Vincent Bernat Date: Tue, 17 Mar 2009 14:01:40 +0000 (+0100) Subject: Some virtual ethernet interfaces do not have IFF_MULTICAST flag. We X-Git-Tag: 0.4.0~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b29c23cc9cb02c9a5eb00927d3e5b054ec13b189;p=thirdparty%2Flldpd.git Some virtual ethernet interfaces do not have IFF_MULTICAST flag. We use them if they have at least the IFF_BROADCAST flag. This is useful for Xen Dom0 to get LLDP information from DomU. --- diff --git a/src/lldpd.c b/src/lldpd.c index b2347c22..5d4222ec 100644 --- a/src/lldpd.c +++ b/src/lldpd.c @@ -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))