On Sun 12 Dec 2021 at 16:54:34 +0100, Anders Magnusson wrote: > Yes, true. It's I myself that added that flag, wondering what I was > thinking? :-) It looks like IFF_MULTICAST is also used to mean "can *send* multicasts". See ip_output.c: /* * If the packet is multicast or broadcast, confirm that * the outgoing interface can transmit it. */ if (((m->m_flags & M_MCAST) && (ifp->if_flags & IFF_MULTICAST) == 0) || ((m->m_flags & M_BCAST) && (ifp->if_flags & (IFF_BROADCAST|IFF_POINTOPOINT)) == 0)) { IP_STATINC(IP_STAT_NOROUTE); error = ENETUNREACH; goto bad; } Searching for IFF_ALLMULTI, it seems like it's only really used internal to drivers and to report to userland, not for the kernel to use in any kind of routing decision. -Olaf. -- ___ "Buying carbon credits is a bit like a serial killer paying someone else to \X/ have kids to make his activity cost neutral." -The BOFH falu.nl@rhialto
Attachment:
signature.asc
Description: PGP signature