From: Ondrej Zajicek Date: Tue, 31 Mar 2015 21:59:40 +0000 (+0200) Subject: Understand IFF_MULTICAST flag on ifaces in Linux X-Git-Tag: v1.5.0~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16a3254c4cb592e7cfa3aea744e9fd58665d6367;p=thirdparty%2Fbird.git Understand IFF_MULTICAST flag on ifaces in Linux Unfortunately, some interfaces support multicast but do not have this flag set, so we use it only as a positive hint. Thanks to Clint Armstrong for noticing the problem. --- diff --git a/sysdep/linux/netlink.c b/sysdep/linux/netlink.c index 860c8601d..48dd8babb 100644 --- a/sysdep/linux/netlink.c +++ b/sysdep/linux/netlink.c @@ -436,6 +436,9 @@ nl_parse_link(struct nlmsghdr *h, int scan) else f.flags |= IF_MULTIACCESS; /* NBMA */ + if (fl & IFF_MULTICAST) + f.flags |= IF_MULTICAST; + ifi = if_update(&f); if (!scan)